Exception Definitions. More...
#include <stdexcept>#include "cel_error.h"

Classes | |
| class | Celartem::Exception |
Namespaces | |
| namespace | Celartem |
Defines | |
| #define | celThrow(err) throw ::Celartem::Exception((::Celartem::GeneralErrorDefinition)err, #err, __FILE__, __LINE__, __FUNCTION__) |
| #define | celThrow2(err, str) throw ::Celartem::Exception((::Celartem::GeneralErrorDefinition)err, str, __FILE__, __LINE__, __FUNCTION__) |
Exception Definitions.
| #define celThrow | ( | err | ) | throw ::Celartem::Exception((::Celartem::GeneralErrorDefinition)err, #err, __FILE__, __LINE__, __FUNCTION__) |
This marco throws Celartem::Exception with the specified error code.
| err | An error code defined in Celartem::GeneralErrorDefinition. |
Referenced by Celartem::Hex::fromStrToInt(), Celartem::Decimal::fromStrToInt(), Celartem::Rational< Int >::normalize(), Celartem::Rational< Int >::operator/=(), and Celartem::Thread::run().
| #define celThrow2 | ( | err, | ||
| str | ||||
| ) | throw ::Celartem::Exception((::Celartem::GeneralErrorDefinition)err, str, __FILE__, __LINE__, __FUNCTION__) |
This marco throws Celartem::Exception with the specified error code. It is identical to celThrow except it receives one more parameter named str.
| err | An error code defined in Celartem::GeneralErrorDefinition. | |
| str | A string that represents the details of the error status. |
Referenced by Celartem::SimpleArray< AutoPtr< Bookmark > >::insert(), Celartem::MemoryMove< T, noCopy >::operator()(), Celartem::MemoryCopy< T, noCopy >::operator()(), Celartem::PartialStream::readBytes(), Celartem::NullStream::readBytes(), Celartem::SimpleArray< AutoPtr< Bookmark > >::remove(), and Celartem::PartialStream::writeBytes().