Exception
[XiMoL Users]


Detailed Description

This module contains all things about the exception.


Files

file  error.hpp
 Define the main error class.

file  error.hpp
 Declare the error class and macros. Define an encoders::error derived from ximol::error.


Classes

class  error
 An implementation of a simple error. More...

class  error
 An implementation of a simple error. More...


Defines

#define XIMOL_THROW   { XIMOL_NAMESPACE_PATH::error err; err
 Macro to throw the error.

#define XIMOL_HERE   (::std::ostringstream()<<"(file "<<__FILE__<<",line "<<__LINE__<<")").str()
 Macro to precise the location.

#define XIMOL_AS_ERROR   ""; throw err; };
 Macro to throw the error.

#define XIMOL_ENCODERS_THROW   { XIMOL_ENCODERS_NAMESPACE_PATH::error err; err
 Macro to throw the error.

#define XIMOL_ENCODERS_AS_ERROR   ""; throw err; };
 Macro to throw the error.


Define Documentation

#define XIMOL_AS_ERROR   ""; throw err; };
 

Macro to throw the error.

This macro throw effectively the exception.

XIMOL_THROW << L"error description" << XIMOL_AS_ERROR;

See also:
error

XIMOL_AS_ERROR

Definition at line 126 of file error.hpp.

Referenced by char_data_content(), drop_next_element(), context::get_level_attributes(), context::get_level_ns_tag(), context::get_level_short_ns_tag(), context::get_level_tag(), attributes::insert(), attributes::insert_namespace(), assignment_test_equality_policy::error_policy_throw::object_are_different(), read_att_value(), read_bom(), read_doctype_decl(), read_doctype_element(), read_entity_value(), read_misc(), read_open_stag(), read_pi_target(), read_sd_decl(), read_version_num(), read_xchar(), xml_declaration< VersionInfo, EncodingDecl, SDDecl >::set_encoding_decl(), qualified_name< Prefix, Local >::set_prefix(), xml_declaration< VersionInfo, EncodingDecl, SDDecl >::set_sddecl(), write_att_value(), write_cdata(), write_char_data(), write_char_ref(), write_comment(), write_enc_name(), write_name(), write_ncname(), write_nm_token(), write_ns_att_name(), write_pi(), write_pi_target(), write_pubid_literal(), write_string_with_forbidden_serie(), write_system_literal(), and write_version_num().

#define XIMOL_ENCODERS_AS_ERROR   ""; throw err; };
 

Macro to throw the error.

This macro throw effectively the exception.

XIMOL_ENCODERS_THROW << _(L"error description") << XIMOL_ENCODERS_AS_ERROR;

See also:
error

XIMOL_ENCODERS_AS_ERROR

Definition at line 104 of file error.hpp.

Referenced by change_ximol_facet_encoding(), and codecvt::create_encoding().

#define XIMOL_ENCODERS_THROW   { XIMOL_ENCODERS_NAMESPACE_PATH::error err; err
 

Macro to throw the error.

This macro create the exception, and you could put to some additional information.

XIMOL_ENCODERS_THROW << _(L"error description") << XIMOL_ENCODERS_AS_ERROR;

See also:
error

XIMOL_ENCODERS_AS_ERROR

Definition at line 88 of file error.hpp.

Referenced by change_ximol_facet_encoding(), and codecvt::create_encoding().

#define XIMOL_HERE   (::std::ostringstream()<<"(file "<<__FILE__<<",line "<<__LINE__<<")").str()
 

Macro to precise the location.

This macro return a string with the position in the code.

Definition at line 110 of file error.hpp.

#define XIMOL_THROW   { XIMOL_NAMESPACE_PATH::error err; err
 

Macro to throw the error.

This macro create the exception, and you could put to some additional information.

XIMOL_THROW << L"error description" << XIMOL_AS_ERROR;

See also:
error

XIMOL_AS_ERROR

Definition at line 101 of file error.hpp.

Referenced by char_data_content(), drop_next_element(), context::get_level_attributes(), context::get_level_ns_tag(), context::get_level_short_ns_tag(), context::get_level_tag(), attributes::insert(), attributes::insert_namespace(), assignment_test_equality_policy::error_policy_throw::object_are_different(), read_att_value(), read_bom(), read_doctype_decl(), read_doctype_element(), read_entity_value(), read_misc(), read_open_stag(), read_pi_target(), read_sd_decl(), read_version_num(), read_xchar(), xml_declaration< VersionInfo, EncodingDecl, SDDecl >::set_encoding_decl(), qualified_name< Prefix, Local >::set_prefix(), xml_declaration< VersionInfo, EncodingDecl, SDDecl >::set_sddecl(), write_att_value(), write_cdata(), write_char_data(), write_char_ref(), write_comment(), write_enc_name(), write_name(), write_ncname(), write_nm_token(), write_ns_att_name(), write_pi(), write_pi_target(), write_pubid_literal(), write_string_with_forbidden_serie(), write_system_literal(), and write_version_num().



Donate to the XiMoL project SourceForge.net Logo If you have any questions about XiMoL, you could write to tournois@users.sourceforge.net.