#include <TdkServer.h>
Inheritance diagram for TdkException:
Public Types | |
enum | { UndefinedError, FatalError, InvalidValue, InvalidArgument, MemoryAllocation, OutOfMemory, TypeCasting, OutOfBoundary, FileNotFound, NoCurrentView, NoSelectedTheme, EmptyEventComposite, ExistentEventComposite, MrSIDError, ShapefileError, NoAvailableUndo, NoAvailableRedo, InvalidPointEditionInit, InvalidEditionPropertiesInit, NoSelectedObject, MultipleSelectedObjects, NoUserPermission, UserNotFound, RoleNotFound, NoTableSelected, ExistentTheme, ExistentLayer } |
Public Member Functions | |
virtual | ~TdkException () |
TdkException (std::string src_file_name, int src_file_line, int error_code, std::string more_info="") throw () | |
Construtor: The error message based on the error coded. | |
TdkException (std::string src_file_name="", int src_file_line=-1, std::string error_msg="") throw () | |
Construtor: Free error message. | |
const char * | trace () throw () |
Returns a detailed error message: error message + more information + debug information (if DEBUG). | |
const char * | msg () throw () |
Returns a simples error message: error message + more information. | |
const int | getCodeError () throw () |
Returns the error message code. | |
TdkException () | |
TdkException (const TdkException &) | |
TdkException (const char *i_name) | |
TdkException & | operator= (const TdkException &) |
virtual | ~TdkException () |
virtual void | _raise () const |
void | operator>>= (cdrStream &) const |
void | operator<<= (cdrStream &) |
virtual CORBA::Exception * | _NP_duplicate () const |
Static Public Member Functions | |
static TdkException * | _downcast (CORBA::Exception *) |
static const TdkException * | _downcast (const CORBA::Exception *) |
static TdkException * | _narrow (CORBA::Exception *_e) |
Public Attributes | |
CORBA::String_member | name |
Static Public Attributes | |
static _core_attr insertExceptionToAny | insertToAnyFn |
static _core_attr insertExceptionToAnyNCP | insertToAnyFnNCP |
static _core_attr const char * | _PD_repoId |
static _core_attr const char * | _PD_typeId |
Protected Member Functions | |
virtual void | setMessagesMap () |
Sets the message map. | |
void | setDebugInfo (std::string src_file_name, int src_file_line) throw () |
Sets the debug information. | |
std::string | getMessageFromMap (int code_error) throw () |
Returns a message from the map corresponding to the given error code. | |
Protected Attributes | |
int | codeError_ |
The error code. | |
std::string | message_ |
The error message. | |
std::string | debugInfo_ |
Debug information about the moment when the exception happened: class, method, source file, line number. | |
std::string | moreInfo_ |
More information will show with the error message. | |
_MSG_MAP | msgMap_ |
The message map indexed by the error code. | |
Private Member Functions | |
virtual const char * | _NP_typeId () const |
virtual const char * | _NP_repoId (int *) const |
virtual void | _NP_marshal (cdrStream &) const |
anonymous enum |
virtual TdkException::~TdkException | ( | ) | [inline, virtual] |
TdkException::TdkException | ( | std::string | src_file_name, | |
int | src_file_line, | |||
int | error_code, | |||
std::string | more_info = "" | |||
) | throw () |
Construtor: The error message based on the error coded.
Tecgraf - GIS development team
Tdk Framework
@(#) TdkExeption.cpp
src_file_name | Name of the source file where the exception happened. |
src_file_line | Line number of the source file where the exception happened. |
error_code | Error code associated with the exception. |
more_info | This extra information must be showed with the error message. |
TdkException::TdkException | ( | std::string | src_file_name = "" , |
|
int | src_file_line = -1 , |
|||
std::string | error_msg = "" | |||
) | throw () |
Construtor: Free error message.
src_file_name | Name of the source file where the exception happened. |
src_file_line | Line number of the source file where the exception happened. |
error_msg | The error message. |
TdkException::TdkException | ( | ) | [inline] |
TdkException::TdkException | ( | const TdkException & | ) |
TdkException::TdkException | ( | const char * | i_name | ) |
virtual TdkException::~TdkException | ( | ) | [virtual] |
void TdkException::setMessagesMap | ( | ) | [inline, protected, virtual] |
Sets the message map.
Reimplemented in TdkLayoutException, TdkDatabaseException, and TdkDatabasePortalException.
void TdkException::setDebugInfo | ( | std::string | src_file_name, | |
int | src_file_line | |||
) | throw () [protected] |
Sets the debug information.
std::string TdkException::getMessageFromMap | ( | int | code_error | ) | throw () [protected] |
Returns a message from the map corresponding to the given error code.
const char * TdkException::trace | ( | ) | throw () |
Returns a detailed error message: error message + more information + debug information (if DEBUG).
const char * TdkException::msg | ( | ) | throw () |
Returns a simples error message: error message + more information.
const int TdkException::getCodeError | ( | ) | throw () |
Returns the error message code.
TdkException& TdkException::operator= | ( | const TdkException & | ) |
virtual void TdkException::_raise | ( | ) | const [virtual] |
static TdkException* TdkException::_downcast | ( | CORBA::Exception * | ) | [static] |
static const TdkException* TdkException::_downcast | ( | const CORBA::Exception * | ) | [static] |
static TdkException* TdkException::_narrow | ( | CORBA::Exception * | _e | ) | [inline, static] |
void TdkException::operator>>= | ( | cdrStream & | ) | const |
void TdkException::operator<<= | ( | cdrStream & | ) |
virtual CORBA::Exception* TdkException::_NP_duplicate | ( | ) | const [virtual] |
virtual const char* TdkException::_NP_typeId | ( | ) | const [private, virtual] |
virtual const char* TdkException::_NP_repoId | ( | int * | ) | const [private, virtual] |
virtual void TdkException::_NP_marshal | ( | cdrStream & | ) | const [private, virtual] |
int TdkException::codeError_ [protected] |
The error code.
std::string TdkException::message_ [protected] |
The error message.
std::string TdkException::debugInfo_ [protected] |
Debug information about the moment when the exception happened: class, method, source file, line number.
std::string TdkException::moreInfo_ [protected] |
More information will show with the error message.
_MSG_MAP TdkException::msgMap_ [protected] |
The message map indexed by the error code.
CORBA::String_member TdkException::name |
_core_attr insertExceptionToAny TdkException::insertToAnyFn [static] |
_core_attr insertExceptionToAnyNCP TdkException::insertToAnyFnNCP [static] |
_core_attr const char* TdkException::_PD_repoId [static] |
_core_attr const char* TdkException::_PD_typeId [static] |