#include <errortypes.h>
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().
Public Member Functions | |
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) |
Private Member Functions | |
MAXON_INTERFACE (ErrnoErrorInterface, MAXON_REFERENCE_COPY_ON_WRITE, "net.maxon.interface.errnoerror") | |
|
private |
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 |
Returns the errno error code stored in this error.
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. |