{}
explicit DecodeError (std::string function, std::string caller)
- : std::runtime_error (String::compose("%1 failed in %2", function, caller))
+ : std::runtime_error (String::compose("%1 failed [%2", function, caller))
{}
explicit DecodeError (std::string function, std::string caller, int error)
- : std::runtime_error (String::compose("%1 failed in %2 (%3)", function, caller, error))
+ : std::runtime_error (String::compose("%1 failed [%2] (%3)", function, caller, error))
{}
};
{}
};
+
/** @class EncodeError
* @brief A low-level problem with an encoder.
*/
explicit EncodeError (std::string s)
: std::runtime_error (s)
{}
+
+ explicit EncodeError (std::string function, std::string caller)
+ : std::runtime_error (String::compose("%1 failed [%2]", function, caller))
+ {}
+
+ explicit EncodeError (std::string function, std::string caller, int error)
+ : std::runtime_error (String::compose("%1 failed [%2] (%3)", function, caller, error))
+ {}
};
+
/** @class FileError.
* @brief Parent class for file-related errors.
*/