OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
Exception.h
Go to the documentation of this file.
1/*
2 * Exception.h
3 *
4 * Created on: December 04, 2020
5 * Author: Alexander Kuester
6 * Copyright (c) 2020 openTwin
7 */
8
9#pragma once
10
11// C++ header
12#include <exception> // Base class
13
14class ErrorException : public std::exception {
15public:
16
19
22 ErrorException(const char * _what);
23
26 ErrorException(const std::exception& _other);
27
29 virtual ~ErrorException() throw() {}
30};
31
32// ##################################################################################
33
34class WarningException : public std::exception {
35public:
36
39
43 const char * _what
44 );
45
49 const std::exception & _other
50 );
51
53 virtual ~WarningException() throw() {}
54};
Definition Exception.h:14
virtual ~ErrorException()
Deconstructor.
Definition Exception.h:29
ErrorException()
Default constructor.
Definition Exception.h:18
Definition Exception.h:34
WarningException()
Default constructor.
Definition Exception.h:38
virtual ~WarningException()
Deconstructor.
Definition Exception.h:53