Deepsolver
Public Member Functions
Deepsolver::CurlException Class Reference
Inheritance diagram for Deepsolver::CurlException:
Deepsolver::DeepsolverException

List of all members.

Public Member Functions

 CurlException (int code, const std::string &url, const std::string &text)
 The destructor.
int getCode () const
std::string getMessage () const
 Returns a single line error description.
std::string getText () const
std::string getType () const
 Returns a string with error type.
std::string getUrl () const
virtual ~CurlException ()
 The destructor.

Constructor & Destructor Documentation

Deepsolver::CurlException::CurlException ( int  code,
const std::string &  url,
const std::string &  text 
) [inline]
Parameters:
[in]codeA error code
[in]urlA URL caused a problem
[in]textA error description

Member Function Documentation

std::string Deepsolver::CurlException::getMessage ( ) const [inline, virtual]

This method returns a single line string value with error description. Usually it is the value printed to user in error message. The value may not include error type since it can be obtained with getType() method.

Returns:
A single line error description

Implements Deepsolver::DeepsolverException.

std::string Deepsolver::CurlException::getType ( ) const [inline, virtual]

This method returns a short string with one or two words describing the error type. For example, this method can return values like "system", "back-end" etc. A value returned by this method usually is used for error message construction.

Returns:
A short string with error type description

Implements Deepsolver::DeepsolverException.