BusBoy  2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Static Public Member Functions | List of all members
BUSBOY::Error Class Reference

#include <Error.h>

Public Types

enum  Severity { WARN, ERROR }
 

Public Member Functions

 Error ()
 
 Error (const std::string &summary, const std::string &detail, const std::string &source, Severity severity=ERROR)
 
 Error (const Error &error)
 
Severity getSeverity () const
 
std::string getSummary () const
 
std::string getDetail () const
 
std::string getSource () const
 
std::string str () const
 
 ~Error ()
 
Erroroperator= (const Error &error)
 
bool operator== (const Error &error) const
 
bool operator!= (const Error &error) const
 

Static Public Member Functions

static Severity severityFromString (std::string strSev)
 Parses the string equivalent of the enum. More...
 
static std::string severityToString (Severity sev)
 Returns the string equivalent of the enum. More...
 

Member Enumeration Documentation

Enumerator
WARN 
ERROR 

Constructor & Destructor Documentation

BUSBOY::Error::Error ( )
BUSBOY::Error::Error ( const std::string &  summary,
const std::string &  detail,
const std::string &  source,
Severity  severity = ERROR 
)
BUSBOY::Error::Error ( const Error error)
BUSBOY::Error::~Error ( )

Member Function Documentation

std::string BUSBOY::Error::getDetail ( ) const
Error::Severity BUSBOY::Error::getSeverity ( ) const
std::string BUSBOY::Error::getSource ( ) const
std::string BUSBOY::Error::getSummary ( ) const
bool BUSBOY::Error::operator!= ( const Error error) const
Error & BUSBOY::Error::operator= ( const Error error)
bool BUSBOY::Error::operator== ( const Error error) const
Error::Severity BUSBOY::Error::severityFromString ( std::string  strSev)
static

Parses the string equivalent of the enum.

For example: "ERROR" –> ERROR

std::string BUSBOY::Error::severityToString ( Error::Severity  sev)
static

Returns the string equivalent of the enum.

For example: ERROR –> "ERROR"

std::string BUSBOY::Error::str ( ) const

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

Copyright 2014 Google Inc. All rights reserved.