LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
lariov::WebError Class Reference

#include "WebError.h"

Inheritance diagram for lariov::WebError:

Public Member Functions

 WebError (std::string msg="")
 
virtual ~WebError () throw ()
 
virtual const char * what () const throw ()
 

Private Attributes

std::string _msg
 

Detailed Description

Definition at line 25 of file WebError.h.

Constructor & Destructor Documentation

lariov::WebError::WebError ( std::string  msg = "")
inline

Definition at line 28 of file WebError.h.

References _msg.

28  : std::exception()
29  {
30  _msg = "\033[93m";
31  _msg += msg;
32  _msg += "\033[00m";
33  }
std::string _msg
Definition: WebError.h:39
cet::coded_exception< error, detail::translate > exception
Definition: exception.h:33
virtual lariov::WebError::~WebError ( )
throw (
)
inlinevirtual

Definition at line 35 of file WebError.h.

35 {};

Member Function Documentation

virtual const char* lariov::WebError::what ( ) const
throw (
)
inlinevirtual

Definition at line 36 of file WebError.h.

References _msg.

36 { return _msg.c_str(); }
std::string _msg
Definition: WebError.h:39

Member Data Documentation

std::string lariov::WebError::_msg
private

Definition at line 39 of file WebError.h.

Referenced by WebError(), and what().


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