Elements
5.10
A C++ base framework for the Euclid Software.
ElementsKernel
ElementsKernel
Exit.h
Go to the documentation of this file.
1
26
#ifndef ELEMENTSKERNEL_ELEMENTSKERNEL_EXIT_H_
27
#define ELEMENTSKERNEL_ELEMENTSKERNEL_EXIT_H_
28
29
30
#include <type_traits>
31
32
namespace
Elements
{
33
98
enum class
ExitCode
: int {
99
100
OK
= 0,
101
102
NOT_OK
= 1,
103
104
USAGE
= 64,
105
DATAERR
= 65,
106
NOINPUT
= 66,
107
NOUSER
= 67,
108
NOHOST
= 68,
109
UNAVAILABLE
= 69,
110
SOFTWARE
= 70,
111
OSERR
= 71,
112
OSFILE
= 72,
113
CANTCREAT
= 73,
114
IOERR
= 74,
115
TEMPFAIL
= 75,
116
PROTOCOL
= 76,
117
NOPERM
= 77,
118
CONFIG
= 78
119
120
};
121
123
using
ExitCodeType
=
std::underlying_type<ExitCode>::type
;
124
125
}
// namespace Elements
126
127
#endif // ELEMENTSKERNEL_ELEMENTSKERNEL_EXIT_H_
128
Elements::ExitCode
ExitCode
Strongly typed exit numbers.
Definition:
Exit.h:98
Elements::ExitCode::PROTOCOL
remote error in protocol
Elements::ExitCode::NOT_OK
Generic unknown failure.
Elements::ExitCode::OK
Everything is OK.
Elements::ExitCode::OSFILE
critical OS file missing
Elements::ExitCode::SOFTWARE
internal software error
Elements::ExitCode::NOPERM
permission denied
Elements
Definition:
ClassExample.h:38
Elements::ExitCode::CONFIG
configuration error
Elements::ExitCode::USAGE
command line usage error
Elements::ExitCode::OSERR
system error (e.g., can't fork)
Elements::ExitCode::NOUSER
addressee unknown
Elements::ExitCode::DATAERR
data format error
Elements::ExitCode::TEMPFAIL
temp failure; user is invited to retry
Elements::ExitCodeType
std::underlying_type< ExitCode >::type ExitCodeType
Underlying type of the ExitCode class.
Definition:
Exit.h:123
std::underlying_type
Elements::ExitCode::UNAVAILABLE
service unavailable
Elements::ExitCode::NOHOST
host name unknown
Elements::ExitCode::CANTCREAT
can't create (user) output file
Elements::ExitCode::IOERR
input/output error
Elements::ExitCode::NOINPUT
cannot open input
Generated by
1.8.15