LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
Exception.h
Go to the documentation of this file.
1
#ifndef canvas_Utilities_Exception_h
2
#define canvas_Utilities_Exception_h
3
4
// ======================================================================
5
//
6
// Exception: art-specific customizations for cetlib/coded_exception
7
//
8
// Note that errors::ErrorCodes is tightly coupled to detail::translate()
9
// such that any change to one will necessitate a corresponding change to
10
// the other. The actions table in Framework/Core/Actions may also need
11
// adjustment.
12
//
13
// ======================================================================
14
15
#include "cetlib_except/coded_exception.h"
16
#include <string>
17
18
// ----------------------------------------------------------------------
19
20
namespace
art
{
21
namespace
errors {
22
23
enum
ErrorCodes
{
24
OtherArt
= 1,
25
StdException
,
26
Unknown
,
27
BadAlloc
,
28
BadExceptionType
,
29
ProductNotFound
,
30
DictionaryNotFound
,
31
ProductPutFailure
,
32
Configuration
,
33
LogicError
,
// = 10
34
UnimplementedFeature
,
35
InvalidReference
,
36
TypeConversion
,
37
NullPointerError
,
38
EventTimeout
,
39
DataCorruption
,
40
ScheduleExecutionFailure
,
41
EventProcessorFailure
,
42
EndJobFailure
,
43
FileOpenError
,
// = 20
44
FileReadError
,
45
FatalRootError
,
46
MismatchedInputFiles
,
47
CatalogServiceError
,
48
ProductDoesNotSupportViews
,
49
ProductDoesNotSupportPtr
,
50
SQLExecutionError
,
51
InvalidNumber
,
52
NotFound
,
53
ServiceNotFound
,
// = 30
54
ProductCannotBeAggregated
,
55
ProductRegistrationFailure
,
56
EventRangeOverlap
57
};
58
59
}
// errors
60
61
namespace
ExceptionDetail {
62
std::string
translate
(
errors::ErrorCodes
);
63
}
64
65
using
Exception
=
66
cet::coded_exception<errors::ErrorCodes, ExceptionDetail::translate>;
67
68
}
// art
69
70
// ======================================================================
71
72
#endif
/* canvas_Utilities_Exception_h */
73
74
// Local Variables:
75
// mode: c++
76
// End:
art::errors::NotFound
Definition:
Exception.h:52
art::errors::StdException
Definition:
Exception.h:25
art::errors::EventTimeout
Definition:
Exception.h:38
art::errors::BadExceptionType
Definition:
Exception.h:28
art::errors::UnimplementedFeature
Definition:
Exception.h:34
art::errors::CatalogServiceError
Definition:
Exception.h:47
art::errors::LogicError
Definition:
Exception.h:33
art::errors::ProductDoesNotSupportPtr
Definition:
Exception.h:49
art::errors::TypeConversion
Definition:
Exception.h:36
art::errors::EndJobFailure
Definition:
Exception.h:42
art::errors::InvalidReference
Definition:
Exception.h:35
art::errors::Configuration
Definition:
Exception.h:32
art::errors::EventRangeOverlap
Definition:
Exception.h:56
art::errors::InvalidNumber
Definition:
Exception.h:51
art::errors::ServiceNotFound
Definition:
Exception.h:53
art::errors::ProductRegistrationFailure
Definition:
Exception.h:55
art::errors::ProductCannotBeAggregated
Definition:
Exception.h:54
art::ExceptionDetail::translate
std::string translate(errors::ErrorCodes)
Definition:
Exception.cc:18
art::errors::ErrorCodes
ErrorCodes
Definition:
Exception.h:23
art::errors::ScheduleExecutionFailure
Definition:
Exception.h:40
art::errors::FatalRootError
Definition:
Exception.h:45
art::errors::ProductNotFound
Definition:
Exception.h:29
art::errors::ProductPutFailure
Definition:
Exception.h:31
art::errors::OtherArt
Definition:
Exception.h:24
art::errors::Unknown
Definition:
Exception.h:26
art::errors::DataCorruption
Definition:
Exception.h:39
art::errors::BadAlloc
Definition:
Exception.h:27
art::errors::DictionaryNotFound
Definition:
Exception.h:30
art::errors::NullPointerError
Definition:
Exception.h:37
art::errors::ProductDoesNotSupportViews
Definition:
Exception.h:48
art::Exception
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
Definition:
Exception.h:66
art::errors::SQLExecutionError
Definition:
Exception.h:50
art::errors::MismatchedInputFiles
Definition:
Exception.h:46
art
HLT enums.
Definition:
ServiceProviderWrappers.h:36
art::errors::FileReadError
Definition:
Exception.h:44
art::errors::FileOpenError
Definition:
Exception.h:43
art::errors::EventProcessorFailure
Definition:
Exception.h:41
canvas
Utilities
Exception.h
Generated on Wed Dec 12 2018 14:42:35 for LArSoft by
1.8.11