diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-02-25 00:39:01 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-02-25 00:39:01 +0000 |
| commit | d4b350cc524543b8142ac803232b31af751885e2 (patch) | |
| tree | 45a79c6053f536596a9712c7ae01660f7df6563d /src/exceptions.cc | |
| parent | 95c6dd4301da219834a7c60fec3fa92c1ec23265 (diff) | |
Throw exceptions with badly-formed XML when reading a DCP; preserve detail in DCPReadError.
Diffstat (limited to 'src/exceptions.cc')
| -rw-r--r-- | src/exceptions.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/exceptions.cc b/src/exceptions.cc index 71771b1c..1ded4483 100644 --- a/src/exceptions.cc +++ b/src/exceptions.cc @@ -108,3 +108,11 @@ CertificateChainError::CertificateChainError (std::string message) { } + +DCPReadError::DCPReadError (string message, string detail) + : runtime_error(String::compose("%1 (%2)", message, detail)) + , _message(message) + , _detail(detail) +{ + +} |
