ErrnoErrorInterface Class Reference 系统

#include <errortypes.h>

Inheritance diagram for ErrnoErrorInterface:

详细描述

Error that contains a errno error state. This error is returned if the error code contains the value of the 'errno' variable at the point when the error occurred. The GetMessage functions retrieves the error text from the system using strerror().

公共成员函数

  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 ( ErrnoErrorInterface , MAXON_REFERENCE_COPY_ON_WRITE , "net.maxon.interface.errnoerror")

成员函数文档编制

◆  MAXON_INTERFACE()

MAXON_INTERFACE ( ErrnoErrorInterface   ,
MAXON_REFERENCE_COPY_ON_WRITE   ,
"net.maxon.interface.errnoerror"   
)
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 errno error code stored in this error.

◆  SetErrorCode()

MAXON_FUNCTION void SetErrorCode ( Int   errorCode )

Sets the errno error code. This error must be returned from the errno system variable. The error can output the human readable string of the errno error.

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