Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
Namespace List
Namespace Members
cet
sqlite
ExceptionDetail
Functions
cet::sqlite::ExceptionDetail Namespace Reference
Functions
std::string
translate
(
errors::ErrorCodes
)
Function Documentation
std::string
cet::sqlite::ExceptionDetail::translate
(
errors::ErrorCodes
code
)
Definition at line
7
of file
Exception.cc
.
8
{
9
using namespace
errors;
10
11
switch
(
code
) {
12
case
LogicError
:
13
return
"LogicError"
;
14
case
SQLExecutionError
:
15
return
"SQLExecutionError"
;
16
case
OtherError
:
17
return
"OtherError"
;
18
case
Unknown
:
19
return
"Unknown"
;
20
}
21
throw
Exception
(
errors::LogicError
)
22
<<
"Internal error: missing string translation for error "
<<
code
23
<<
" which was not caught at compile time!\n"
;
24
}
art::errors::LogicError
Definition:
Exception.h:33
code
CodeOutputInterface * code
Definition:
tclscanner.cpp:1114
art::errors::Unknown
Definition:
Exception.h:26
art::Exception
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
Definition:
Exception.h:66
art::errors::SQLExecutionError
Definition:
Exception.h:50
cet::sqlite::errors::OtherError
Definition:
Exception.h:18
Generated by
1.8.11