NX Open C++ Reference Guide
|
A base class for exceptions thrown by NXOpen methods. More...
Inherits std::exception.
Public Member Functions | |
void | AssertErrorCode (int code) const |
Assert if the error code is unexpected. | |
int | ErrorCode () const |
Gets the error code associated with this exception. | |
int | GetErrorCode () const |
Deprecated: Use ErrorCode instead. | |
const char * | GetMessage () const |
Deprecated: Use Message instead. | |
const char * | Message () const |
Gets the error message associated with this exception. | |
NXException (const NXException &other) | |
virtual const char * | what () const throw () |
Gets the error message associated with this exception. | |
Static Public Member Functions | |
static NXException | Create (int errorCode) |
Creates an NXException. | |
static NXException | Create (const char *message) |
Creates an NXException based on a message in English. | |
static void | ThrowBadTagException () |
static void | ThrowUnexpectedSuccess () |
A base class for exceptions thrown by NXOpen methods.
void NXOpen::NXException::AssertErrorCode | ( | int | code | ) | const |
Assert if the error code is unexpected.
static NXException NXOpen::NXException::Create | ( | int | errorCode | ) | [static] |
Creates an NXException.
static NXException NXOpen::NXException::Create | ( | const char * | message | ) | [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.
int NXOpen::NXException::GetErrorCode | ( | ) | const |
Deprecated:
Use ErrorCode instead.
const char* NXOpen::NXException::GetMessage | ( | ) | const |
Deprecated:
Use Message instead.
const char* NXOpen::NXException::Message | ( | ) | const |
Gets the error message associated with this exception.
virtual const char* NXOpen::NXException::what | ( | ) | const throw () [virtual] |
Gets the error message associated with this exception.
Does not throw an exception.