NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
NXOpen::NXException类 参考

#include <NXException.hxx>

类 NXOpen::NXException 继承关系图:

Public 成员函数

void AssertErrorCode (int code) const
int ErrorCode () const
const char * Message () const
 NXException (const NXException &other) noexcept
NXException & operator= (const NXException &)=delete
virtual const char * what () const throw ()
virtual ~NXException () noexcept

静态 Public 成员函数

static NXException Create (const char *message)
static NXException Create (int errorCode)
static NXException Create (int errorCode, const char *message)

详细描述

NXOpen方法抛出的异常的基类

构造及析构函数说明

◆ NXException()

NXOpen::NXException::NXException ( const NXException & other)
noexcept

拷贝构造函数。

◆ ~NXException()

virtual NXOpen::NXException::~NXException ( )
virtualnoexcept

析构函数。

成员函数说明

◆ AssertErrorCode()

void NXOpen::NXException::AssertErrorCode ( int code) const

断言错误码是否为非预期值。

◆ Create() [1/3]

NXException NXOpen::NXException::Create ( const char * message)
static

根据英文消息创建NXException对象。 错误码设为0。

◆ Create() [2/3]

NXException NXOpen::NXException::Create ( int errorCode)
static

创建NXException对象。

◆ Create() [3/3]

NXException NXOpen::NXException::Create ( int errorCode,
const char * message )
static

根据消息和错误码创建NXException对象

◆ ErrorCode()

int NXOpen::NXException::ErrorCode ( ) const

获取该异常对应的错误码。

◆ Message()

const char * NXOpen::NXException::Message ( ) const

获取该异常对应的错误消息。

◆ what()

virtual const char * NXOpen::NXException::what ( ) const
throw ( )
inlinevirtual

获取该异常对应的错误消息。 不会抛出异常。