2#include "debugtrace.hpp"
3#include "lasp_config.h"
11 errstr.reserve(ERR_MSG_LEN);
12 char errmsg[ERR_MSG_LEN];
13 errstr =
"UlDaq API Error: ";
14 ulGetErrMsg(err, errmsg);
19 std::cerr <<
"\b\n**************** UlDAQ backend error **********\n";
20 std::cerr << errstr << std::endl;
21 std::cerr <<
"***********************************************\n\n";
24 if (err != ERR_NO_ERROR)
30 if (err == ERR_NO_ERROR) {
38 }
else if ((
int)err == 19) {
Used for internal throwing of exceptions.
void throwOnPossibleUlException(UlError err)
Throws an appropriate stream exception based on the UlError number. The mapping is based on the error...
void showErr(UlError err)
Print error message to stderr.
string getErrMsg(UlError err)
Return a string corresponding to the UlDaq API error.