Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::wave::macro_handling_exception Class Reference

#include <cpp_exceptions.hpp>

Inheritance diagram for boost::wave::macro_handling_exception:
Collaboration diagram for boost::wave::macro_handling_exception:

Public Types

enum  error_code {
  no_error = 0,
  unexpected_error,
  macro_redefinition,
  macro_insertion_error,
  bad_include_file,
  bad_include_statement,
  ill_formed_directive,
  error_directive,
  warning_directive,
  ill_formed_expression,
  missing_matching_if,
  missing_matching_endif,
  ill_formed_operator,
  bad_define_statement,
  bad_define_statement_va_args,
  too_few_macroarguments,
  too_many_macroarguments,
  empty_macroarguments,
  improperly_terminated_macro,
  bad_line_statement,
  bad_line_number,
  bad_line_filename,
  bad_undefine_statement,
  bad_macro_definition,
  illegal_redefinition,
  duplicate_parameter_name,
  invalid_concat,
  last_line_not_terminated,
  ill_formed_pragma_option,
  include_nesting_too_deep,
  misplaced_operator,
  alreadydefined_name,
  undefined_macroname,
  invalid_macroname,
  unexpected_qualified_name,
  division_by_zero,
  integer_overflow,
  illegal_operator_redefinition,
  ill_formed_integer_literal,
  ill_formed_character_literal,
  unbalanced_if_endif,
  character_literal_out_of_range,
  could_not_open_output_file,
  incompatible_config,
  ill_formed_pragma_message,
  pragma_message_directive,
  last_error_number = pragma_message_directive
}
 

Public Member Functions

 macro_handling_exception (char const *what_, error_code code, std::size_t line_, std::size_t column_, char const *filename_, char const *macroname) throw ()
 
 ~macro_handling_exception () throw ()
 
virtual char const * what () const throw ()
 
char const * get_related_name () const throw ()
 
virtual char const * description () const throw ()
 
virtual int get_severity () const throw ()
 
virtual int get_errorcode () const throw ()
 
virtual bool is_recoverable () const throw ()
 
std::size_t line_no () const throw ()
 
std::size_t column_no () const throw ()
 
char const * file_name () const throw ()
 

Static Public Member Functions

static char const * error_text (int code)
 
static util::severity severity_level (int code)
 
static char const * severity_text (int code)
 

Protected Attributes

char filename [512]
 
std::size_t line
 
std::size_t column
 

Member Enumeration Documentation

Enumerator
no_error 
unexpected_error 
macro_redefinition 
macro_insertion_error 
bad_include_file 
bad_include_statement 
ill_formed_directive 
error_directive 
warning_directive 
ill_formed_expression 
missing_matching_if 
missing_matching_endif 
ill_formed_operator 
bad_define_statement 
bad_define_statement_va_args 
too_few_macroarguments 
too_many_macroarguments 
empty_macroarguments 
improperly_terminated_macro 
bad_line_statement 
bad_line_number 
bad_line_filename 
bad_undefine_statement 
bad_macro_definition 
illegal_redefinition 
duplicate_parameter_name 
invalid_concat 
last_line_not_terminated 
ill_formed_pragma_option 
include_nesting_too_deep 
misplaced_operator 
alreadydefined_name 
undefined_macroname 
invalid_macroname 
unexpected_qualified_name 
division_by_zero 
integer_overflow 
illegal_operator_redefinition 
ill_formed_integer_literal 
ill_formed_character_literal 
unbalanced_if_endif 
character_literal_out_of_range 
could_not_open_output_file 
incompatible_config 
ill_formed_pragma_message 
pragma_message_directive 
last_error_number 

Constructor & Destructor Documentation

boost::wave::macro_handling_exception::macro_handling_exception ( char const *  what_,
error_code  code,
std::size_t  line_,
std::size_t  column_,
char const *  filename_,
char const *  macroname 
)
throw (
)
inline
boost::wave::macro_handling_exception::~macro_handling_exception ( )
throw (
)
inline

Member Function Documentation

std::size_t boost::wave::cpp_exception::column_no ( ) const
throw (
)
inlineinherited
virtual char const* boost::wave::preprocess_exception::description ( ) const
throw (
)
inlinevirtualinherited
static char const* boost::wave::preprocess_exception::error_text ( int  code)
inlinestaticinherited
char const* boost::wave::cpp_exception::file_name ( ) const
throw (
)
inlineinherited
virtual int boost::wave::preprocess_exception::get_errorcode ( ) const
throw (
)
inlinevirtualinherited
char const* boost::wave::macro_handling_exception::get_related_name ( ) const
throw (
)
inlinevirtual
virtual int boost::wave::preprocess_exception::get_severity ( ) const
throw (
)
inlinevirtualinherited
virtual bool boost::wave::preprocess_exception::is_recoverable ( ) const
throw (
)
inlinevirtualinherited

Implements boost::wave::cpp_exception.

References boost::wave::preprocess_exception::bad_define_statement, boost::wave::preprocess_exception::bad_define_statement_va_args, boost::wave::preprocess_exception::bad_include_file, boost::wave::preprocess_exception::bad_include_statement, boost::wave::preprocess_exception::bad_line_filename, boost::wave::preprocess_exception::bad_line_number, boost::wave::preprocess_exception::bad_line_statement, boost::wave::preprocess_exception::bad_macro_definition, boost::wave::preprocess_exception::bad_undefine_statement, boost::wave::preprocess_exception::character_literal_out_of_range, boost::wave::preprocess_exception::could_not_open_output_file, boost::wave::preprocess_exception::division_by_zero, boost::wave::preprocess_exception::duplicate_parameter_name, boost::wave::preprocess_exception::empty_macroarguments, boost::wave::preprocess_exception::error_directive, boost::wave::preprocess_exception::ill_formed_character_literal, boost::wave::preprocess_exception::ill_formed_directive, boost::wave::preprocess_exception::ill_formed_expression, boost::wave::preprocess_exception::ill_formed_integer_literal, boost::wave::preprocess_exception::ill_formed_operator, boost::wave::preprocess_exception::ill_formed_pragma_message, boost::wave::preprocess_exception::ill_formed_pragma_option, boost::wave::preprocess_exception::illegal_operator_redefinition, boost::wave::preprocess_exception::illegal_redefinition, boost::wave::preprocess_exception::improperly_terminated_macro, boost::wave::preprocess_exception::include_nesting_too_deep, boost::wave::preprocess_exception::incompatible_config, boost::wave::preprocess_exception::integer_overflow, boost::wave::preprocess_exception::invalid_concat, boost::wave::preprocess_exception::invalid_macroname, boost::wave::preprocess_exception::last_line_not_terminated, boost::wave::preprocess_exception::macro_insertion_error, boost::wave::preprocess_exception::macro_redefinition, boost::wave::preprocess_exception::missing_matching_endif, boost::wave::preprocess_exception::missing_matching_if, boost::wave::preprocess_exception::no_error, boost::wave::preprocess_exception::pragma_message_directive, boost::wave::preprocess_exception::too_few_macroarguments, boost::wave::preprocess_exception::too_many_macroarguments, boost::wave::preprocess_exception::unbalanced_if_endif, boost::wave::preprocess_exception::unexpected_error, and boost::wave::preprocess_exception::warning_directive.

std::size_t boost::wave::cpp_exception::line_no ( ) const
throw (
)
inlineinherited
static char const* boost::wave::preprocess_exception::severity_text ( int  code)
inlinestaticinherited
virtual char const* boost::wave::macro_handling_exception::what ( ) const
throw (
)
inlinevirtual

Reimplemented from boost::wave::preprocess_exception.

Member Data Documentation

std::size_t boost::wave::cpp_exception::column
protectedinherited
char boost::wave::cpp_exception::filename[512]
protectedinherited
std::size_t boost::wave::cpp_exception::line
protectedinherited

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