#include <OSCARError.h>
Public Methods | |
| OSCARError (int errorCode, const String &basicDescription, const String &customDescription=String()) | |
| OSCARError (const OSCARError &rhs) | |
| virtual | ~OSCARError () |
| OSCARError & | operator= (const OSCARError &rhs) |
| void | SetErrorCode (int errorCode) |
| void | SetBasicDescription (const String &basicDesc) |
| void | SetCustomDescription (const String &customDesc) |
| int | GetErrorCode () const |
| const String & | GetBasicDescription () const |
| const String & | GetCustomDescription () const |
| operator int () const | |
| bool | operator== (const OSCARError &err) const |
| bool | operator!= (const OSCARError &err) const |
Protected Attributes | |
| int | errorCode |
| String | basicDescription |
| String | customDescription |
|
||||||||||||||||
|
Constructor. This is the Constructor for an object of type OSCARError. Use this to construct OSCARError objects with an integer error code, a basic description of the error, and a customized description.
|
|
|
Copy Constructor. This is the Copy Constructor for an object of type OSCARError. Use this to construct an OSCARError object from an existing OSCARError object.
|
|
|
Virtual Destructor. This is the Destructor for an object of type OSCARError. |
|
|
Get the basic error description. This method is used to get the basic error description.
|
|
|
Get the custom error description. This method is used to get the custom error description.
|
|
|
Get the error code. This method is used to get the error code.
|
|
|
Typecast an OSCARError object into an int. This method is used to typecast an OSCARError object into an int. This allows you to use OSCARError instead of int's for returning simple error codes. Also, this supports legacy OSCAR code in which OSCARError's were defined as int's
|
|
|
Overloaded operator!=. This overloaded operator!= is used to compare two RROSCARObjects. Basically, the integer error code inside each OSCARError object is used as the basis for comparison. This method is constant.
|
|
|
Assignment Operator. This is the assignment operator for an object of type OSCARError.
|
|
|
Overloaded operator==. This overloaded operator== is used to compare two RROSCARObjects. Basically, the integer error code inside each OSCARError object is used as the basis for comparison. This method is constant.
|
|
|
Set the basic error description. This method is used to set the basic error description.
|
|
|
Set the custom error description. This method is used to set a custom error description. Use this method to specify additional context specific error descriptions. For example, the String parameter could be used to hold the name of the object that caused the error, or it could be used to hold information such as the number of the joint that violated a joint limit, etc. The default value for the customDescription is "";
|
|
|
Set the error code. This method is used to set the error code to the value of the parameter passed in.
|
|
|
|
|
|
|
|
|
|
| RRG Homepage | OSCAR Overview | OSCAR Tutorials | Simulations |