#include <systemerror.h>
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") | |
|
private |
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 | ) |
Sets the encapsulated NSError.
[in] | osError | NSError to set. |
MAXON_METHOD void SetCFError | ( | CFErrorRef | osError | ) |
Sets the encapsulated CFError.
[in] | osError | CFError to set. |
MAXON_METHOD NSError* GetNSError | ( | ) | const |
Returns the encapsulated NSError.