Jpp  18.5.2
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Attributes | Friends | List of all members
KM3NETDAQ::JDAQException Class Reference

General exception. More...

#include <JDAQException.hh>

Inheritance diagram for KM3NETDAQ::JDAQException:

Public Member Functions

 JDAQException (const std::string &error)
 Constructor. More...
 
 ~JDAQException () throw ()
 Destructor. More...
 
virtual const char * what () const throw ()
 Get error message. More...
 

Private Attributes

const std::string buffer
 

Friends

std::ostream & operator<< (std::ostream &out, const JDAQException &exception)
 Print error message of JDAQException. More...
 

Detailed Description

General exception.

Definition at line 18 of file JDAQException.hh.

Constructor & Destructor Documentation

KM3NETDAQ::JDAQException::JDAQException ( const std::string error)
inline

Constructor.

Parameters
errorerror message

Definition at line 25 of file JDAQException.hh.

25  :
26  std::exception(),
27  buffer(error)
28  {}
const std::string buffer
KM3NETDAQ::JDAQException::~JDAQException ( )
throw (
)
inline

Destructor.

Definition at line 34 of file JDAQException.hh.

35  {}

Member Function Documentation

virtual const char* KM3NETDAQ::JDAQException::what ( ) const
throw (
)
inlinevirtual

Get error message.

Returns
error message

Definition at line 43 of file JDAQException.hh.

44  {
45  return buffer.c_str();
46  }
const std::string buffer

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  out,
const JDAQException exception 
)
friend

Print error message of JDAQException.

Parameters
outoutput stream
exceptionexception

Definition at line 55 of file JDAQException.hh.

56  {
57  return out << exception.what();
58  }

Member Data Documentation

const std::string KM3NETDAQ::JDAQException::buffer
private

Definition at line 61 of file JDAQException.hh.


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