Static Public Member Functions | List of all members
Celartem::Error Struct Reference

#include <cel_errutil.h>

Static Public Member Functions

static size_t getOSError ()
 
static GeneralErrorDefinition errorFromOSError ()
 
static GeneralErrorDefinition errorFromOSError (size_t inErrorCode)
 
static GeneralErrorDefinition errorFromErrno ()
 
static GeneralErrorDefinition errorFromErrno (int inErrno)
 
static String stringFromOSError ()
 
static String stringFromOSError (size_t inErrorCode)
 
static String stringFromErrno ()
 
static String stringFromErrno (int inErrno)
 

Detailed Description

OS dependent error -> Library error code conversion.

Member Function Documentation

static GeneralErrorDefinition Celartem::Error::errorFromErrno ( )
static

This function converts std::errno into the library defined error code defined in cel_error.h .

Returns
The error code corresponding to std::errno .
static GeneralErrorDefinition Celartem::Error::errorFromErrno ( int  inErrno)
static

This function converts std::errno into the library defined error code defined in cel_error.h .

Parameters
inErrnoOS error code.
Returns
The error code corresponding to std::errno .
static GeneralErrorDefinition Celartem::Error::errorFromOSError ( )
static

This function converts the OS's current error status into the library defined error code defined in cel_error.h .

Returns
The error code that stands for the current status.
static GeneralErrorDefinition Celartem::Error::errorFromOSError ( size_t  inErrorCode)
static

This function converts the OS's current error status into the library defined error code defined in cel_error.h .

Parameters
inErrorCodeOS error code.
Returns
The error code that stands for the current status.
static size_t Celartem::Error::getOSError ( )
static

Get OS error.

Returns
OS error code.
static String Celartem::Error::stringFromErrno ( )
static

This function returns the string that is mapped to the current std::errno value.

Parameters
inErrnoOS error code.
Returns
The string that represents the error.
static String Celartem::Error::stringFromErrno ( int  inErrno)
static

This function returns the string that is mapped to the current std::errno value.

Returns
The string that represents the error.
static String Celartem::Error::stringFromOSError ( )
static

This function returns the string that is mapped to the current error status.

Returns
The string that represents the error.

Referenced by Celartem::PlatformException::getPlatformErrorDescription().

static String Celartem::Error::stringFromOSError ( size_t  inErrorCode)
static

This function returns the string that is mapped to the current error status.

Parameters
inErrorCodeOS error code.
Returns
The string that represents the error.

The documentation for this struct was generated from the following file:

Cuminas DjVu SDK 3.0.33103
This document is made with doxygen 1.8.5 at Sun Dec 15 2013 19:38:06.
Cuminas Logo