NX Open C++ Reference Guide
|
A base class for exceptions thrown by NXOpen methods. More...
Public Member Functions | |
void | AssertErrorCode (int code) const |
Assert if the error code is unexpected. More... | |
int | ErrorCode () const |
Gets the error code associated with this exception. More... | |
const char * | Message () const |
Gets the error message associated with this exception. More... | |
NXException (const NXException &other) | |
Copy constructor. More... | |
virtual const char * | what () const throw () |
Gets the error message associated with this exception. More... | |
virtual | ~NXException () throw () |
Destructor. More... | |
Static Public Member Functions | |
static NXException | Create (int errorCode) |
Creates an NXException. More... | |
static NXException | Create (const char *message) |
Creates an NXException based on a message in English. More... | |
A base class for exceptions thrown by NXOpen methods.
NXOpen::NXException::NXException | ( | const NXException & | other | ) |
Copy constructor.
|
virtual |
Destructor.
void NXOpen::NXException::AssertErrorCode | ( | int | code | ) | const |
Assert if the error code is unexpected.
|
static |
Creates an NXException.
|
static |
Creates an NXException based on a message in English.
The error code is set to zero.
int NXOpen::NXException::ErrorCode | ( | ) | const |
Gets the error code associated with this exception.
const char* NXOpen::NXException::Message | ( | ) | const |
Gets the error message associated with this exception.
|
virtual |
Gets the error message associated with this exception.
Does not throw an exception.