plastimatch
Loading...
Searching...
No Matches
plm_exception.h
Go to the documentation of this file.
1/* -----------------------------------------------------------------------
2 See COPYRIGHT.TXT and LICENSE.TXT for copyright and license information
3 ----------------------------------------------------------------------- */
4#ifndef _plm_exception_h_
5#define _plm_exception_h_
6
7#include "plmsys_config.h"
8#include <exception>
9#include <string>
10
11class Plm_exception : public std::exception
12{
13public:
14 Plm_exception (const std::string& a) : info(a) { }
15 virtual ~Plm_exception () throw() {}
16
17 const char* what () const throw () {
18 return info.c_str();
19 }
20
21public:
22 /* Error message */
23 const std::string info;
24
25private:
26 const Plm_exception& operator=(const Plm_exception&);
27};
28
29#endif
Definition plm_exception.h:12
const char * what() const
Definition plm_exception.h:17
Plm_exception(const std::string &a)
Definition plm_exception.h:14
const std::string info
Definition plm_exception.h:23
virtual ~Plm_exception()
Definition plm_exception.h:15