NSSystemErrorInterface Class Reference

#include <systemerror.h>

Inheritance diagram for NSSystemErrorInterface:

Detailed Description

System dependent error (macOS and iOS only). This error is returned if the OS returned an NSError.

Public Member Functions

 MAXON_ADD_TO_COPY_ON_WRITE_REFERENCE_CLASS (protected:void Create(MAXON_SOURCE_LOCATION_DECLARATION, NSError *osError) { *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.SetNSError(osError);} void Create(MAXON_SOURCE_LOCATION_DECLARATION, NSError *osError, const String &message) { *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.SetNSError(osError);e.SetMessage(message);} void Create(MAXON_SOURCE_LOCATION_DECLARATION, CFErrorRef osError) { *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.SetCFError(osError);} void Create(MAXON_SOURCE_LOCATION_DECLARATION, CFErrorRef osError, const String &message) { *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.SetCFError(osError);e.SetMessage(message);})
 
MAXON_METHOD void SetNSError (NSError *osError)
 
MAXON_METHOD void SetCFError (CFErrorRef osError)
 
MAXON_METHOD NSError * GetNSError () const
 

Private Member Functions

 MAXON_INTERFACE (NSSystemErrorInterface, MAXON_REFERENCE_COPY_ON_WRITE, "net.maxon.interface.nsystemerror", MAXON_IMPLEMENTATION_MODULE("net.maxon.kernel"))
 

Member Function Documentation

◆ MAXON_INTERFACE()

MAXON_INTERFACE ( NSSystemErrorInterface  ,
MAXON_REFERENCE_COPY_ON_WRITE  ,
"net.maxon.interface.nsystemerror"  ,
MAXON_IMPLEMENTATION_MODULE("net.maxon.kernel")   
)
private

◆ MAXON_ADD_TO_COPY_ON_WRITE_REFERENCE_CLASS()

MAXON_ADD_TO_COPY_ON_WRITE_REFERENCE_CLASS ( protected:void Create(MAXON_SOURCE_LOCATION_DECLARATION, NSError *osError) { *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.SetNSError(osError);} void Create(MAXON_SOURCE_LOCATION_DECLARATION, NSError *osError, const String &message) { *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.SetNSError(osError);e.SetMessage(message);} void Create(MAXON_SOURCE_LOCATION_DECLARATION, CFErrorRef osError) { *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.SetCFError(osError);} void Create(MAXON_SOURCE_LOCATION_DECLARATION, CFErrorRef osError, const String &message) { *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.SetCFError(osError);e.SetMessage(message);}  )

◆ SetNSError()

MAXON_METHOD void SetNSError ( NSError *  osError)

Sets the encapsulated NSError.

Parameters
[in]osErrorNSError to set.

◆ SetCFError()

MAXON_METHOD void SetCFError ( CFErrorRef  osError)

Sets the encapsulated CFError.

Parameters
[in]osErrorCFError to set.

◆ GetNSError()

MAXON_METHOD NSError* GetNSError ( ) const

Returns the encapsulated NSError.

Returns
NSError pointer.