NX Open C++ Reference Guide
Public Member Functions | Static Public Member Functions | List of all members
NXOpen::NXException Class Reference

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

Inheritance diagram for NXOpen::NXException:

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

Detailed Description

A base class for exceptions thrown by NXOpen methods.

Constructor & Destructor Documentation

NXOpen::NXException::NXException ( const NXException other)

Copy constructor.

virtual NXOpen::NXException::~NXException ( ) throw ()
virtual

Destructor.

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.

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 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 2017 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.