#include "cetlib_except/exception.h"
#include <cassert>
#include <iomanip>
#include <iostream>
#include <string>
Go to the source code of this file.
|
const char | expected [] |
|
const char * | correct [] = {"InfiniteLoop", "DataCorrupt"} |
|
Test function 1.
- Returns
- A integer.
Definition at line 79 of file Exception_t.cc.
cet::coded_exception< error, detail::translate > exception
Definition at line 116 of file Exception_t.cc.
122 std::cerr <<
"*** main caught Exception, output is ***\n" 123 <<
"(" << e.explain_self() <<
")\n" 124 <<
"*** After exception output ***" <<
std::endl;
131 std::cerr <<
"\nCategory name list:\n";
134 b(e.history().end());
137 assert(e.history().size() == 2);
139 for (
int j = 0; i !=
b; ++i, ++j) {
140 std::cout <<
" " << *i <<
"\n";
142 std::cerr <<
"bad category " << *i <<
std::endl;
cet::coded_exception< error, detail::translate > exception
QTextStream & endl(QTextStream &s)
std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const Thing & |
t |
|
) |
| |
const char* correct[] = {"InfiniteLoop", "DataCorrupt"} |
Initial value:= "---- InfiniteLoop BEGIN\n"
" In func1\n"
" ---- DataCorrupt BEGIN\n"
" This is just a test: \n"
" double: 1.11111\n"
" float: 2.22222\n"
" uint: 75\n"
" string: a string\n"
" char*: a nonconst pointer\n"
" char[]: a c-style array\n"
" Thing: Thing(4)\n"
" \n"
" double: 1.111110e+00\n"
" float: 2.22e+00\n"
" char*: ..a nonconst pointer\n"
" \n"
" ---- DataCorrupt END\n"
" Gave up\n"
"---- InfiniteLoop END\n"
Definition at line 22 of file Exception_t.cc.