Open Search
    SystemErrorInterface Class Reference

    #include <systemerror.h>

    Inheritance diagram for SystemErrorInterface:

    Detailed Description

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

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

    Member Function Documentation

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

    Parameters
    [in]errorCodeError code of the system variable.