DCL 4.0
Loading...
Searching...
No Matches
IOException Class Reference

#include <Exception.h>

Inheritance diagram for IOException:
SysError Exception Object

Public Member Functions

 IOException (const String &_name, Exception *_cause)
 IOException (const String &_name, uint32_t _errorNo)
 IOException (const String &_name, const String &_message)
virtual String toString () const
Public Member Functions inherited from SysError
 SysError (Exception *_cause=NULL)
 SysError (uint32_t _errorNo)
uint32_t errorNo () const
Public Member Functions inherited from Exception
 Exception (Exception *_cause=NULL)
const Exceptioncause () const
String toStringAll () const
virtual void destroy ()
Public Member Functions inherited from Object
String className () const
bool isInstanceOf (const std::type_info &typeinfo) const
virtual const std::type_info & typeInfo () const

Protected Attributes

String __message
Protected Attributes inherited from Exception
Exception__pCause

Additional Inherited Members

Protected Member Functions inherited from Exception
virtual ~Exception ()
Protected Member Functions inherited from Object
virtual ~Object ()
 Object ()

Detailed Description

Definition at line 92 of file Exception.h.

Constructor & Destructor Documentation

◆ IOException() [1/3]

IOException::IOException ( const String & _name,
Exception * _cause )

◆ IOException() [2/3]

IOException::IOException ( const String & _name,
uint32_t _errorNo )

Definition at line 181 of file Exception.cpp.

182 : SysError(WINAPI_ERROR(_errorNo))
183{
184 __message = L"\"" + _name + L"\"";
185}
#define WINAPI_ERROR(n)
Definition Exception.h:72
String __message
Definition Exception.h:94
SysError(Exception *_cause=NULL)

◆ IOException() [3/3]

IOException::IOException ( const String & _name,
const String & _message )

Definition at line 187 of file Exception.cpp.

188{
189 __message = L"\"" + _name + L"\"" + __T(" ") + _message;
190}
#define __T(str)
Definition Object.h:44

Member Function Documentation

◆ toString()

String IOException::toString ( ) const
virtual

Reimplemented from SysError.

Definition at line 192 of file Exception.cpp.

193{
194 StringBuilder r = __message;
195 if (SysError::errorNo() != 0)
196 r += __T(" ") + SysError::toString();
197
198 return r;
199}
ByteString r
uint32_t errorNo() const
Definition Exception.h:78
virtual String toString() const

Member Data Documentation

◆ __message

String IOException::__message
protected

Definition at line 101 of file Exception.h.


The documentation for this class was generated from the following files: