From ce2e7e5197ea7db5454a381c5b75c1c63b2d2d59 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Mon, 1 Aug 2016 14:31:37 -0700 Subject: uhd: Added syntax error exception type --- host/lib/exception.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'host/lib') diff --git a/host/lib/exception.cpp b/host/lib/exception.cpp index a9e36fd15..fc87fe791 100644 --- a/host/lib/exception.cpp +++ b/host/lib/exception.cpp @@ -43,6 +43,7 @@ make_exception_impl("EnvironmentError", environment_error, exception) make_exception_impl("IOError", io_error, environment_error) make_exception_impl("OSError", os_error, environment_error) make_exception_impl("SystemError", system_error, exception) +make_exception_impl("SyntaxError", syntax_error, exception) usb_error::usb_error(int code, const std::string &what): runtime_error(str(boost::format("%s %d: %s") % "USBError" % code % what)), _code(code) {} -- cgit v1.2.3