trsl
error_handling.hpp
Go to the documentation of this file.
1
// (C) Copyright Renaud Detry 2007-2011.
2
// Distributed under the Boost Software License, Version 1.0. (See
3
// accompanying file LICENSE_1_0.txt or copy at
4
// http://www.boost.org/LICENSE_1_0.txt)
5
8
#ifndef TRSL_ERROR_HANDLING_HPP
9
#define TRSL_ERROR_HANDLING_HPP
10
11
#include <stdexcept>
12
13
namespace
trsl
{
14
16
class
runtime_error
:
public
std::runtime_error
17
{
18
public
:
19
runtime_error
(
const
std::string& s) : std::runtime_error(s) {}
20
runtime_error
(
const
char
* s) : std::runtime_error(s) {}
21
};
22
27
class
bad_parameter_value
:
public
runtime_error
28
{
29
public
:
30
bad_parameter_value
(
const
std::string& s) :
runtime_error
(s) {}
31
bad_parameter_value
(
const
char
* s) :
runtime_error
(s) {}
32
};
33
34
}
35
36
#endif // include guard
trsl::runtime_error
Exception for runtime errors in TRSL.
Definition:
error_handling.hpp:16
trsl::bad_parameter_value
Thrown when a TRSL component receives a parameter that has a forbidden value.
Definition:
error_handling.hpp:27
trsl
Public namespace.
Definition:
common.hpp:29
© Copyright 2007-2011 Renaud Detry.
Distributed under the Boost Software License, Version 1.0.
(See accompanying file
LICENSE_1_0.txt
or copy at
www.boost.org/LICENSE_1_0.txt
.)
Revised Wed Jan 8 2020 14:43:31.