Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
fhiclcpp
fhiclcpp
exception.cc
Go to the documentation of this file.
1
// ======================================================================
2
//
3
// exception
4
//
5
// ======================================================================
6
7
#include "
fhiclcpp/exception.h
"
8
9
// ----------------------------------------------------------------------
10
11
std::string
12
fhicl::detail::translate
(
error
const
code
)
13
{
14
switch
(code) {
15
case
cant_find
:
16
return
"Can't find key"
;
17
case
cant_happen
:
18
return
"Can't happen"
;
19
case
cant_insert
:
20
return
"Can't insert key"
;
21
case
number_is_too_large
:
22
return
"Excessive value"
;
23
case
parse_error
:
24
return
"Parse error"
;
25
case
type_mismatch
:
26
return
"Type mismatch"
;
27
case
protection_violation
:
28
return
"Protection violation"
;
29
case
cant_open_db
:
30
return
"Can't open DB"
;
31
case
sql_error
:
32
return
"SQL error"
;
33
case
unimplemented
:
34
return
"Unimplemented feature"
;
35
case
other
:
36
return
"Other error"
;
37
default
:
38
return
"Unknown code"
;
39
}
40
}
41
42
// ======================================================================
string
std::string string
Definition:
nybbler.cc:12
fhicl::cant_insert
Definition:
exception.h:18
exception.h
fhicl::cant_find
Definition:
exception.h:16
fhicl::error
error
Definition:
exception.h:15
fhicl::other
Definition:
exception.h:26
code
CodeOutputInterface * code
Definition:
tclscanner.cpp:1114
fhicl::detail::translate
std::string translate(error)
Definition:
exception.cc:12
fhicl::type_mismatch
Definition:
exception.h:21
fhicl::unimplemented
Definition:
exception.h:25
fhicl::cant_open_db
Definition:
exception.h:23
fhicl::parse_error
Definition:
exception.h:20
fhicl::sql_error
Definition:
exception.h:24
fhicl::cant_happen
Definition:
exception.h:17
fhicl::number_is_too_large
Definition:
exception.h:19
fhicl::protection_violation
Definition:
exception.h:22
Generated by
1.8.11