VMime
command_error Class Reference

#include <exception.hpp>

Inheritance diagram for command_error:
Collaboration diagram for command_error:

Public Member Functions

 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
exception * clone () const
const char * name () const throw ()
Public Member Functions inherited from net_exception
 net_exception (const string &what, const exception &other=NO_EXCEPTION)
 ~net_exception () throw ()
exception * clone () const
const char * name () const 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

Command error: operation failed (this is specific to the underlying protocol).

Constructor & Destructor Documentation

◆ command_error()

command_error ( const string & command,
const string & response,
const string & desc = "",
const exception & other = NO_EXCEPTION )

◆ ~command_error()

~command_error ( )
throw ( )

Member Function Documentation

◆ clone()

exception * clone ( ) const
virtual

Clone this object.

Returns
a new copy of this object

Reimplemented from exception.

Reimplemented in SMTPCommandError.

References command_error().

◆ command()

const string & command ( ) const

Return the name of the command which have thrown the exception.

This is protocol-dependent.

Returns
command name (protocol-dependent)

Referenced by command_error(), SMTPCommandError::SMTPCommandError(), and SMTPCommandError::SMTPCommandError().

◆ name()

const char * name ( ) const
throw ( )
virtual

Return a name identifying the exception.

Returns
exception name

Reimplemented from exception.

Reimplemented in SMTPCommandError.

◆ response()

const string & response ( ) const

Return the invalid response line.

The meaning is protocol-dependent.

Returns
response line (protocol-dependent)

Referenced by command_error(), POP3Message::extract(), SMTPCommandError::SMTPCommandError(), and SMTPCommandError::SMTPCommandError().


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