-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexception.hh
More file actions
36 lines (23 loc) · 933 Bytes
/
exception.hh
File metadata and controls
36 lines (23 loc) · 933 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// Time-stamp: <2016-01-25 15:33:15 dmendyke>
#ifndef __EXCEPTION_HH__
#define __EXCEPTION_HH__
// Required header files
//-----------------------------------------------------------------------------
#include <stdexcept> // std::runtime_error
#include <memory> // std::unique_ptr
// Namespace used with this exception class
//-----------------------------------------------------------------------------
namespace taurus {
// Wrapper around an excpetion class used with this class library
//---------------------------------------------------------------------------
class exception : public std::runtime_error {
public:
exception( int );
exception( const exception& );
const char* what() const noexcept;
private:
enum { length = 96 }; // length of the message string
std::string message_; // error message
}; // end class exception
}; // end NS taurus
#endif // __EXCEPTION_HH__