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  }
22  << "Internal error: missing string translation for error " << code
23  << " which was not caught at compile time!\n";
24 }
CodeOutputInterface * code
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
Definition: Exception.h:66