hej is hosted by Hepforge, IPPP Durham
HEJ 2 2.0
High energy resummation for hadron colliders
Loading...
Searching...
No Matches
exceptions.hh
Go to the documentation of this file.
1
8#pragma once
9
10#include <stdexcept>
11
12namespace HEJ{
14
18 struct invalid_type: std::invalid_argument {
19 explicit invalid_type(std::string const & what):
20 std::invalid_argument{what} {};
21 explicit invalid_type(char const * what):
22 std::invalid_argument{what} {};
23 };
24
26
30 struct unknown_option: std::invalid_argument {
31 explicit unknown_option(std::string const & what):
32 std::invalid_argument{what} {};
33 explicit unknown_option(char const * what):
34 std::invalid_argument{what} {};
35 };
36
38
42 struct missing_option: std::logic_error {
43 explicit missing_option(std::string const & what):
44 std::logic_error{what} {};
45 explicit missing_option(char const * what):
46 std::logic_error{what} {};
47 };
48
50 struct not_implemented: std::logic_error {
51 explicit not_implemented(std::string const & what):
52 std::logic_error{what} {};
53 explicit not_implemented(char const * what):
54 std::logic_error{what} {};
55 };
56
57}
Main HEJ 2 Namespace.
Definition: mainpage.dox:1
Exception indicating wrong option type.
Definition: exceptions.hh:18
invalid_type(std::string const &what)
Definition: exceptions.hh:19
invalid_type(char const *what)
Definition: exceptions.hh:21
Exception indicating missing option setting.
Definition: exceptions.hh:42
missing_option(std::string const &what)
Definition: exceptions.hh:43
missing_option(char const *what)
Definition: exceptions.hh:45
Exception indicating functionality that has not been implemented yet.
Definition: exceptions.hh:50
not_implemented(char const *what)
Definition: exceptions.hh:53
not_implemented(std::string const &what)
Definition: exceptions.hh:51
Exception indicating unknown option.
Definition: exceptions.hh:30
unknown_option(char const *what)
Definition: exceptions.hh:33
unknown_option(std::string const &what)
Definition: exceptions.hh:31