VMime
exception Class Reference

#include <exception.hpp>

Inheritance diagram for exception:
Collaboration diagram for exception:

Public Member Functions

 exception (const string &what, const exception &other=NO_EXCEPTION)
 exception (const exception &e)
virtual ~exception () throw ()
void chainException (const exception &other)
const exception * other () const throw ()
virtual const char * name () const throw ()
virtual exception * clone () const

Static Protected Attributes

static const exception NO_EXCEPTION

Detailed Description

Base class for VMime exceptions.

Constructor & Destructor Documentation

◆ exception() [1/2]

exception ( const string & what,
const exception & other = NO_EXCEPTION )

References clone(), NO_EXCEPTION, and other().

◆ exception() [2/2]

exception ( const exception & e)

References clone().

◆ ~exception()

~exception ( )
throw ( )
virtual

Member Function Documentation

◆ chainException()

void chainException ( const exception & other)

Chain the specified exception with this exception.

Parameters
othernext exception in the chain

References other().

◆ clone()

◆ name()

◆ other()

const exception * other ( ) const
throw ( )

Return the next exception in the chain, that is the exception that caused this exception.

This permits nesting exceptions.

Returns
next exception in the chain

Referenced by already_connected::already_connected(), authentication_error::authentication_error(), authentication_exception::authentication_exception(), bad_field_value_type::bad_field_value_type(), chainException(), charset_conv_error::charset_conv_error(), command_error::command_error(), connection_error::connection_error(), connection_greeting_error::connection_greeting_error(), exception(), file_not_found::file_not_found(), filesystem_exception::filesystem_exception(), folder_already_open::folder_already_open(), folder_not_found::folder_not_found(), illegal_byte_sequence_for_charset::illegal_byte_sequence_for_charset(), illegal_operation::illegal_operation(), illegal_state::illegal_state(), invalid_argument::invalid_argument(), invalid_folder_name::invalid_folder_name(), invalid_property_type::invalid_property_type(), invalid_response::invalid_response(), malformed_url::malformed_url(), message_not_found::message_not_found(), net_exception::net_exception(), no_auth_information::no_auth_information(), no_digest_algorithm_available::no_digest_algorithm_available(), no_encoder_available::no_encoder_available(), no_expeditor::no_expeditor(), no_factory_available::no_factory_available(), no_platform_handler::no_platform_handler(), no_recipient::no_recipient(), no_such_field::no_such_field(), no_such_mechanism::no_such_mechanism(), no_such_message_id::no_such_message_id(), no_such_part::no_such_part(), no_such_property::no_such_property(), not_a_directory::not_a_directory(), not_connected::not_connected(), open_file_error::open_file_error(), operation_cancelled::operation_cancelled(), operation_not_supported::operation_not_supported(), operation_timed_out::operation_timed_out(), partial_fetch_not_supported::partial_fetch_not_supported(), sasl_exception::sasl_exception(), SMTPCommandError::SMTPCommandError(), SMTPCommandError::SMTPCommandError(), SMTPMessageSizeExceedsCurLimitsException::SMTPMessageSizeExceedsCurLimitsException(), SMTPMessageSizeExceedsMaxLimitsException::SMTPMessageSizeExceedsMaxLimitsException(), socket_exception::socket_exception(), socket_not_connected_exception::socket_not_connected_exception(), system_error::system_error(), tls_exception::tls_exception(), unfetched_object::unfetched_object(), and unsupported_option::unsupported_option().

Member Data Documentation

◆ NO_EXCEPTION

const exception NO_EXCEPTION
staticprotected

Referenced by exception().


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