VMime
SMTPCommandError Class Reference

#include <SMTPExceptions.hpp>

Inheritance diagram for SMTPCommandError:
Collaboration diagram for SMTPCommandError:

Public Member Functions

 SMTPCommandError (const string &command, const string &response, const string &desc, const int statusCode, const SMTPResponse::enhancedStatusCode &extendedStatusCode, const exception &other=NO_EXCEPTION)
 SMTPCommandError (const string &command, const string &response, const int statusCode, const SMTPResponse::enhancedStatusCode &extendedStatusCode, const exception &other=NO_EXCEPTION)
 ~SMTPCommandError () throw ()
int statusCode () const
const SMTPResponse::enhancedStatusCode extendedStatusCode () const
exception * clone () const
const char * name () const throw ()
Public Member Functions inherited from command_error
 command_error (const string &command, const string &response, const string &desc="", const exception &other=NO_EXCEPTION)
 ~command_error () throw ()
const stringcommand () const
const stringresponse () const
Public Member Functions inherited from net_exception
 net_exception (const string &what, const exception &other=NO_EXCEPTION)
 ~net_exception () throw ()
Public Member Functions inherited from exception
 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 ()

Additional Inherited Members

Static Protected Attributes inherited from exception
static const exception NO_EXCEPTION

Detailed Description

SMTP Command error: a SMTP command failed.

Constructor & Destructor Documentation

◆ SMTPCommandError() [1/2]

SMTPCommandError ( const string & command,
const string & response,
const string & desc,
const int statusCode,
const SMTPResponse::enhancedStatusCode & extendedStatusCode,
const exception & other = NO_EXCEPTION )

◆ SMTPCommandError() [2/2]

SMTPCommandError ( const string & command,
const string & response,
const int statusCode,
const SMTPResponse::enhancedStatusCode & extendedStatusCode,
const exception & other = NO_EXCEPTION )

◆ ~SMTPCommandError()

~SMTPCommandError ( )
throw ( )

Member Function Documentation

◆ clone()

exception * clone ( ) const
virtual

Clone this object.

Returns
a new copy of this object

Reimplemented from command_error.

References SMTPCommandError().

◆ extendedStatusCode()

const SMTPResponse::enhancedStatusCode extendedStatusCode ( ) const

Returns the extended status code (following RFC-3463) for this error, if available.

Returns
status code

Referenced by SMTPCommandError(), and SMTPCommandError().

◆ name()

const char * name ( ) const
throw ( )
virtual

Return a name identifying the exception.

Returns
exception name

Reimplemented from command_error.

◆ statusCode()

int statusCode ( ) const

Returns the SMTP status code for this error.

Returns
status code (protocol-dependent)

Referenced by SMTPCommandError(), and SMTPCommandError().


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