Classes | Namespaces | Defines

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:

Classes

class  Celartem::ErrorSaver
struct  Celartem::Error

Namespaces

namespace  Celartem

Defines

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

Detailed Description

OS Dependent Error Handling.


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.

#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.

#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.

This document is made with doxygen 1.7.1 at Sun Sep 5 2010 13:03:35.
Caminova Logo