diff options
author | Jack Lloyd <[email protected]> | 2017-11-14 09:12:35 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-11-14 09:12:35 -0500 |
commit | cce28dc1da0ee946495b89525d74e224e6743cb3 (patch) | |
tree | fb7a8ce1ca8cda630281223c763c64833fdb17f8 /src/lib/utils/exceptn.cpp | |
parent | ece37db0992107bdc9416c75427047bf94f5be29 (diff) |
Add a second constructor to Decoding_Error which takes an exception string.
Diffstat (limited to 'src/lib/utils/exceptn.cpp')
-rw-r--r-- | src/lib/utils/exceptn.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/utils/exceptn.cpp b/src/lib/utils/exceptn.cpp index 3fa7dfd3e..a72e45ba4 100644 --- a/src/lib/utils/exceptn.cpp +++ b/src/lib/utils/exceptn.cpp @@ -79,6 +79,9 @@ Decoding_Error::Decoding_Error(const std::string& name) : Invalid_Argument("Decoding error: " + name) {} +Decoding_Error::Decoding_Error(const std::string& name, const char* exception_message) : + Invalid_Argument("Decoding error: " + name + " failed with exception " + exception_message) {} + Integrity_Failure::Integrity_Failure(const std::string& msg) : Exception("Integrity failure: " + msg) {} |