Class RWException


  • public class RWException
    extends java.lang.Object
    Standard exception type of RobWork.

    All exception thrown within RobWork are of the type Exception.

    An exception contains a message (of type Message) for the user and
    nothing else.
    • Constructor Detail

      • RWException

        public RWException​(long cPtr,
                           boolean cMemoryOwn)
      • RWException

        public RWException()
        This constructor creates an empty Exception and should not be used
      • RWException

        public RWException​(Message message)
        Constructor

        Parameters:
        message - [in] A message for a user.
      • RWException

        public RWException​(int id,
                           Message message)
        Constructor

        Parameters:
        id - [in] Integer Id to identify the exception
        message - [in] A message for a user.
      • RWException

        public RWException​(java.lang.String error)
    • Method Detail

      • getCPtr

        public static long getCPtr​(RWException obj)
      • delete

        public void delete()
      • getMessage

        public Message getMessage()
        The message for the user describing the reason for the error.

        Returns:
        The message for the user.
      • getId

        public int getId()
        get id of this exception message
        Returns:
        id
      • what

        public java.lang.String what()
        readable description of this esception
        Returns:
        string description

        readable description of this esception
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object