SystemErrorInterface Class Reference 系统

#include <systemerror.h>

Inheritance diagram for SystemErrorInterface:

详细描述

系统 dependent error (Win only). This error is returned if the error code contains the value of GetLastError() at the point when the error occured. The GetMessage functions retrieves the error text from the windows system using FormatMessage.

公共成员函数

  MAXON_ADD_TO_COPY_ON_WRITE_REFERENCE_CLASS (protected:void Create( MAXON_SOURCE_LOCATION_DECLARATION , Int errorCode) { *static_cast< typename S::DirectlyReferencedType::Hxx1::ReferenceClass * >(this)=S::DirectlyReferencedType::Hxx1::ErrObj::GetInstance()();typename S::DirectlyReferencedType::Ptr e=this->MakeWritable(false).GetPointer();e.SetLocation( MAXON_SOURCE_LOCATION_FORWARD );e.SetErrorCode(errorCode);})
MAXON_FUNCTION Int   GetErrorCode () const
MAXON_FUNCTION void  SetErrorCode ( Int errorCode)

私有成员函数

  MAXON_INTERFACE ( SystemErrorInterface , MAXON_REFERENCE_COPY_ON_WRITE , "net.maxon.interface.systemerror")

成员函数文档编制

◆  MAXON_INTERFACE()

MAXON_INTERFACE ( SystemErrorInterface   ,
MAXON_REFERENCE_COPY_ON_WRITE   ,
"net.maxon.interface.systemerror"   
)
private

◆  MAXON_ADD_TO_COPY_ON_WRITE_REFERENCE_CLASS()

MAXON_ADD_TO_COPY_ON_WRITE_REFERENCE_CLASS ( protected:void Create( MAXON_SOURCE_LOCATION_DECLARATION , Int errorCode) { *static_cast< typename S::DirectlyReferencedType::Hxx1::ReferenceClass * >(this)=S::DirectlyReferencedType::Hxx1::ErrObj::GetInstance()();typename S::DirectlyReferencedType::Ptr e=this->MakeWritable(false).GetPointer();e.SetLocation( MAXON_SOURCE_LOCATION_FORWARD );e.SetErrorCode(errorCode);}  )

◆  GetErrorCode()

MAXON_FUNCTION Int GetErrorCode ( ) const

Returns the system error code stored in this error.

◆  SetErrorCode()

MAXON_FUNCTION void SetErrorCode ( Int   errorCode )

Sets the system error code. This error must be returned from the Windows GetLastError(). The error can output the human readable string of the Windows GetLastError() error.

参数
[in] errorCode Error code of the system variable.