NX Open C++ Reference Guide
Public Member Functions | Static Public Member Functions
NXOpen::NXException Class Reference

A base class for exceptions thrown by NXOpen methods. More...

Inherits std::exception.

List of all members.

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 ()

Detailed Description

A base class for exceptions thrown by NXOpen methods.


Member Function Documentation

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.

Gets the error code associated with this exception.

Deprecated:
   Use ErrorCode instead.

Deprecated:
const char* NXOpen::NXException::GetMessage ( ) const

Deprecated:
   Use Message instead.

Deprecated:
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.


The documentation for this class was generated from the following file:
Copyright 2011 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.