hej is hosted by Hepforge, IPPP Durham
HEJ 2.2.2
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#include <string>
12
13namespace HEJ {
15
19 struct invalid_type: std::invalid_argument {
20 explicit invalid_type(std::string const & what):
21 std::invalid_argument{what} {}
22 explicit invalid_type(char const * what):
23 std::invalid_argument{what} {}
24 };
25
27
31 struct unknown_option: std::invalid_argument {
32 explicit unknown_option(std::string const & what):
33 std::invalid_argument{what} {}
34 explicit unknown_option(char const * what):
35 std::invalid_argument{what} {}
36 };
37
39
43 struct missing_option: std::logic_error {
44 explicit missing_option(std::string const & what):
45 std::logic_error{what} {}
46 explicit missing_option(char const * what):
47 std::logic_error{what} {}
48 };
49
51 struct not_implemented: std::logic_error {
52 explicit not_implemented(std::string const & what):
53 std::logic_error{what} {}
54 explicit not_implemented(char const * what):
55 std::logic_error{what} {}
56 };
57
58} // namespace HEJ
Main HEJ 2 Namespace.
Definition: mainpage.dox:1
Exception indicating wrong option type.
Definition: exceptions.hh:19
invalid_type(std::string const &what)
Definition: exceptions.hh:20
invalid_type(char const *what)
Definition: exceptions.hh:22
Exception indicating missing option setting.
Definition: exceptions.hh:43
missing_option(std::string const &what)
Definition: exceptions.hh:44
missing_option(char const *what)
Definition: exceptions.hh:46
Exception indicating functionality that has not been implemented yet.
Definition: exceptions.hh:51
not_implemented(char const *what)
Definition: exceptions.hh:54
not_implemented(std::string const &what)
Definition: exceptions.hh:52
Exception indicating unknown option.
Definition: exceptions.hh:31
unknown_option(char const *what)
Definition: exceptions.hh:34
unknown_option(std::string const &what)
Definition: exceptions.hh:32