diff options
Diffstat (limited to 'CDAL/CommException.h')
-rwxr-xr-x | CDAL/CommException.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/CDAL/CommException.h b/CDAL/CommException.h new file mode 100755 index 0000000..fc4d576 --- /dev/null +++ b/CDAL/CommException.h @@ -0,0 +1,29 @@ +/* + * CommException.h + * + * Copyright (C) ST-Ericsson SA 2011 + * Authors: Srimanta Panda <srimanta.panda@stericsson.com>, + * Ola Borgelin <ola.borgelin@stericsson.com>, + * Karin Hedlund <karin.hedlund@stericsson.com>, + * Markus Andersson <markus.m.andersson@stericsson.com> for ST-Ericsson. + * License terms: 3-clause BSD license + * + */ + +#pragma once + +#include "CDAL.h" +#include <stdexcept> +#include <string> + +class CommException : public std::runtime_error +{ +public: + CommException(const std::string& message, DeviceStatus_t error); + virtual ~CommException() throw(); + virtual const char* what(); + DeviceStatus_t getError(); +private: + DeviceStatus_t error_; + std::string message_; +}; |