Jpp 19.3.0-rc.1
the software that should make you happy
Loading...
Searching...
No Matches
KM3NETDAQ::JDAQException Class Reference

General exception. More...

#include <JDAQException.hh>

Inheritance diagram for KM3NETDAQ::JDAQException:

Public Member Functions

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

Private Attributes

const std::string buffer
 

Friends

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

Detailed Description

General exception.

Definition at line 18 of file JDAQException.hh.

Constructor & Destructor Documentation

◆ JDAQException()

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

◆ ~JDAQException()

KM3NETDAQ::JDAQException::~JDAQException ( )
throw ( )
inline

Destructor.

Definition at line 34 of file JDAQException.hh.

35 {}

Member Function Documentation

◆ what()

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 }

Friends And Related Symbol Documentation

◆ operator<<

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

◆ buffer

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: