Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
cetlib
cetlib
sqlite
Exception.h
Go to the documentation of this file.
1
#ifndef cetlib_sqlite_Exception_h
2
#define cetlib_sqlite_Exception_h
3
4
// ======================================================================
5
//
6
// Exception: sqlite-specific customizations for cetlib_except/coded_exception
7
//
8
// ======================================================================
9
10
#include "cetlib_except/coded_exception.h"
11
#include <string>
12
13
// ----------------------------------------------------------------------
14
15
namespace
cet::sqlite
{
16
namespace
errors {
17
18
enum
ErrorCodes
{
LogicError
= 0,
SQLExecutionError
,
OtherError
,
Unknown
};
19
20
}
// errors
21
22
namespace
ExceptionDetail {
23
std::string
translate
(
errors::ErrorCodes
);
24
}
25
26
using
Exception
=
27
cet::coded_exception<errors::ErrorCodes, ExceptionDetail::translate>;
28
}
// cet::sqlite
29
30
// ======================================================================
31
32
#endif
/* cetlib_sqlite_Exception_h */
33
34
// Local Variables:
35
// mode: c++
36
// End:
cet::sqlite::errors::SQLExecutionError
Definition:
Exception.h:18
cet::sqlite::errors::ErrorCodes
ErrorCodes
Definition:
Exception.h:18
string
std::string string
Definition:
nybbler.cc:12
cet::sqlite::Exception
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
Definition:
Exception.h:27
cet::sqlite::errors::LogicError
Definition:
Exception.h:18
cet::sqlite::errors::Unknown
Definition:
Exception.h:18
cet::sqlite
Definition:
column.h:38
cet::sqlite::errors::OtherError
Definition:
Exception.h:18
cet::sqlite::ExceptionDetail::translate
std::string translate(errors::ErrorCodes)
Definition:
Exception.cc:7
Generated by
1.8.11