cel_errutil.h File Reference

OS Dependent Error Handling. More...

#include "cel_types.h"
#include "cel_string.h"
#include "cel_error.h"
#include "cel_exception.h"

Include dependency graph for cel_errutil.h:

Go to the source code of this file.

Namespaces

namespace  Celartem

Classes

class  Celartem::ErrorSaver
struct  Celartem::Error

Defines

#define celThrowOSError()
#define celThrowOSError_1(str)
#define celThrow_E(err)


Detailed Description

OS Dependent Error Handling.

Definition in file cel_errutil.h.


Define Documentation

#define celThrow_E ( err   ) 

Value:

throw ::Celartem::Exception( \
        err, \
        ::Celartem::Error::stringFromOSError(), \
        __FILE__, __LINE__)
This macro returns the exception correspoinding to the specified error code.

Definition at line 116 of file cel_errutil.h.

 
#define celThrowOSError (  ) 

Value:

throw::Celartem::Exception( \
        ::Celartem::Error::errorFromOSError(), \
        ::Celartem::Error::stringFromOSError(), \
        __FILE__, __LINE__)
This macro returns the exception correspoinding to the current OS error state.

Definition at line 94 of file cel_errutil.h.

#define celThrowOSError_1 ( str   ) 

Value:

throw ::Celartem::Exception( \
        ::Celartem::Error::errorFromOSError(), \
        (::Celartem::Error::stringFromOSError() + utf8s(" ") + str), \
        __FILE__, __LINE__)
This macro returns the exception correspoinding to the current OS error state. This macro accepts additional string as its parameter.
Parameters:
str Additional information to be shown.

Definition at line 106 of file cel_errutil.h.


This document is automatically generated using doxygen 1.5.4 at Fri Jun 27 18:22:09 2008.