Package org.robwork.sdurw_core
Class RWException
- java.lang.Object
-
- org.robwork.sdurw_core.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 Summary
Constructors Constructor Description RWException()
This constructor creates an empty Exception and should not be usedRWException(int id, Message message)
Constructor
RWException(long cPtr, boolean cMemoryOwn)
RWException(java.lang.String error)
RWException(Message message)
Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete()
static long
getCPtr(RWException obj)
int
getId()
get id of this exception messageMessage
getMessage()
The message for the user describing the reason for the error.
java.lang.String
toString()
java.lang.String
what()
readable description of this esception
-
-
-
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 exceptionmessage
- [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 classjava.lang.Object
-
-