From d4b350cc524543b8142ac803232b31af751885e2 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 25 Feb 2018 00:39:01 +0000 Subject: Throw exceptions with badly-formed XML when reading a DCP; preserve detail in DCPReadError. --- src/exceptions.cc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/exceptions.cc') 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) +{ + +} -- cgit v1.2.3