35 inline std::string formatErrorMessage(std::string msg,
const char *func)
37 return std::string() +
"linopt::" + func +
"(): " + msg;
40 #define ERROR_MSG(...) formatErrorMessage(__VA_ARGS__, __func__) 50 using logic_error::logic_error;
59 using GeneralError::GeneralError;
68 using GeneralError::GeneralError;
73 using GeneralError::GeneralError;
78 #endif // EXCEPTIONS_H The main namespace containing all library classes, functions, etc.
Definition: circuit.h:28
The base exception class.
Definition: exceptions.h:48
The object of this type is thrown when a unitary matrix is expected, but it is not.
Definition: exceptions.h:66
The object of this type is thrown when an object of improper size is encountered. ...
Definition: exceptions.h:57
Definition: exceptions.h:71