Thread portable class


Gate portable class


Timer class


Pool class


Terimber 2.0


About C++


Downloads Products & Services Support Clients Open Source About



Home / Open source / Terimber 2.0

exception Class Reference

supports exception More...

#include <except.h>

List of all members.

Public Member Functions

 exception (size_t id, const wchar_t *desc)
 constructor
 exception (size_t id, const char *desc)
 constructor
virtual ~exception ()
 destructor
size_t get_code () const
 returns exception code
const char * what () const
 returns exception description and throws exception

Static Public Member Functions

static void extract_os_error (size_t code, string_t &err)
 the exception description is searched in specified table or operation system error is used
static void _throw (size_t code, exception_table *table)
 creates exception object and throws exception the exception description is searched in specified table
static void _throw (const wchar_t *desc)
 creates exception object and throws exception
static void _throw (const char *desc)
 creates exception object and throws exception

Private Attributes

size_t _id
 exception ident
string_t _reason
 exception description in utf-8


Detailed Description

supports exception

Definition at line 69 of file except.h.


Constructor & Destructor Documentation

exception::exception ( size_t  id,
const wchar_t desc 
)

constructor

Parameters:
id  exception ident
desc  exception description (wide string)

Definition at line 78 of file except.cpp.

References _reason, and str_template::unicode_to_multibyte().

Referenced by _throw().

exception::exception ( size_t  id,
const char *  desc 
)

constructor

Parameters:
id  exception ident
desc  exception description (narrow string)

Definition at line 85 of file except.cpp.

exception::~exception (  )  [virtual]

destructor

Definition at line 91 of file except.cpp.


Member Function Documentation

size_t exception::get_code (  )  const

returns exception code

Definition at line 96 of file except.cpp.

References _id.

Referenced by dbserver_impl::resize_params(), and dbserver_impl::v_do_job().

void exception::extract_os_error ( size_t  code,
string_t err 
) [static]

the exception description is searched in specified table or operation system error is used

Parameters:
code  exception code
err  [out] error description

Definition at line 141 of file except.cpp.

References os_get_error().

void exception::_throw ( size_t  code,
exception_table table 
) [static]

creates exception object and throws exception the exception description is searched in specified table

Parameters:
code  exception code
table  exception table

Definition at line 110 of file except.cpp.

References exception(), exception_table::get_error(), and os_get_error().

Referenced by dbserver_impl::_check_action(), dbserver_impl::_check_close(), dbserver_impl::_check_connect(), dbserver_impl::_check_disconnect(), dbserver_impl::_check_in_transaction(), dbserver_impl::_check_open(), dbserver_impl::_check_out_transaction(), dbserver_impl::_check_state(), msg_communicator::_decrypt_private_key(), msg_communicator::_extract_keys(), msg_communicator::_register_this(), msg_sock_connection::accept(), msg_listener::accept_address(), msg_communicator::add_connection(), msg_communicator::add_connection_config(), xml_document::add_element(), msg_communicator::add_listener_config(), xml_document::add_pi(), msg_communicator::change_connection_address(), msg_communicator::check_handshake(), check_pointer(), xml_grammar::check_readonly(), msg_communicator::comm_msg(), msg_sock_connection::connect(), msg_rpc_connection::connect(), msg_communicator::construct_msg(), numeric::divide(), byte_consumer::flush(), odbc_dbserver::get_odbc_error(), dbserver_impl::get_param_as_value(), memlookup::get_value_as_value(), terimber_db_value_vector_impl::get_value_as_value(), dbserver_impl::get_value_as_value(), msg_rpc_global::init(), msg_communicator::init(), buffer_loader::load(), msg_communicator::parse_connection(), msg_communicator::parse_listener(), xml_processor::parseDTD(), msg_connection::process_incoming_message(), byte_consumer::push(), msg_queue< P, C >::push(), msg_communicator::reply_handshake(), rpcStatus(), msg_rpc_connection::send_msg(), ServerConnect(), ServerPostBlock(), sockStatus(), byte_source::throw_exception(), msg_cpp::unpack_msg(), orcl_dbserver::v_bind_one_column(), odbc_dbserver::v_bind_one_column(), mysql_dbserver::v_bind_one_column(), orcl_dbserver::v_bind_one_param(), odbc_dbserver::v_bind_one_param(), mysql_dbserver::v_bind_one_param(), orcl_dbserver::v_connect(), orcl_dbserver::v_convert_one_value(), odbc_dbserver::v_convert_one_value(), mysql_dbserver::v_convert_one_value(), msg_communicator::v_do_job(), orcl_dbserver::v_fetch(), odbc_dbserver::v_fetch(), mysql_dbserver::v_fetch(), msg_sock_listener::v_on(), msg_sock_connection::v_on_receive(), orcl_dbserver::v_rebind_one_param(), odbc_dbserver::v_rebind_one_param(), mysql_dbserver::v_rebind_one_param(), odbc_dbserver::v_replace_quote(), mysql_dbserver::v_replace_quote(), content_children::validate(), content_mixed::validate(), xml_document::xml_document(), and xml_exception_throw().

void exception::_throw ( const wchar_t desc  )  [static]

creates exception object and throws exception

Parameters:
desc  exception description (wide string)

Definition at line 127 of file except.cpp.

References exception().

void exception::_throw ( const char *  desc  )  [static]

creates exception object and throws exception

Parameters:
desc  exception description (narrow string)

Definition at line 134 of file except.cpp.

References exception().


Member Data Documentation

size_t exception::_id [private]

exception ident

Definition at line 117 of file except.h.

Referenced by get_code().

exception description in utf-8

Definition at line 118 of file except.h.

Referenced by exception(), and what().


The documentation for this class was generated from the following files:


© Copyright Terimber 2003-.