Psyllid  v1.12.4
Project 8 Data Acquisisition Software
psyllid_error.cc
Go to the documentation of this file.
1 #include <iostream>
2 
3 #include "psyllid_error.hh"
4 
5 namespace psyllid
6 {
7 
9  exception(),
10  f_message( "" )
11  {
12  }
13  error::error( const error& p_copy ) :
14  exception( p_copy ),
15  f_message( p_copy.f_message )
16  {
17  }
18  error& error::operator=( const error& p_copy )
19  {
20  exception::operator=( p_copy );
21  f_message = p_copy.f_message;
22  return *this;
23  }
24  error::~error() throw()
25  {
26  }
27 
28  const char* error::what() const throw()
29  {
30  return f_message.c_str();
31  }
32 
33 }
34 
const char * what() const
std::string f_message
virtual ~error()
error & operator=(const error &p_copy)