Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
messagefacility
messagefacility
Utilities
exception.cc
Go to the documentation of this file.
1
#include "
messagefacility/Utilities/exception.h
"
2
3
std::string
4
mf::detail::translate
(
mf::errors::error
code
)
5
{
6
switch
(code) {
7
case
mf::errors::Configuration
:
8
return
"Configuration error"
;
9
case
mf::errors::LogicError
:
10
return
"Logic error"
;
11
case
mf::errors::OtherError
:
12
return
"Other error"
;
13
default
:
14
return
"Unknown code"
;
15
}
16
}
17
18
// ======================================================================
19
20
/// Local Variables:
21
/// mode: C++
22
/// c-basic-offset: 2
23
/// indent-tabs-mode: nil
24
/// End:
mf::errors::LogicError
Definition:
exception.h:9
string
std::string string
Definition:
nybbler.cc:12
mf::errors::Configuration
Definition:
exception.h:9
mf::errors::OtherError
Definition:
exception.h:9
code
CodeOutputInterface * code
Definition:
tclscanner.cpp:1114
mf::detail::translate
std::string translate(errors::error)
Definition:
exception.cc:4
mf::errors::error
error
Definition:
exception.h:9
exception.h
Generated by
1.8.11