summaryrefslogtreecommitdiffstats
path: root/src/rpc-server/trex_rpc_exception_api.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/rpc-server/trex_rpc_exception_api.h')
-rw-r--r--src/rpc-server/trex_rpc_exception_api.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/rpc-server/trex_rpc_exception_api.h b/src/rpc-server/trex_rpc_exception_api.h
index e349b980..ebc9b411 100644
--- a/src/rpc-server/trex_rpc_exception_api.h
+++ b/src/rpc-server/trex_rpc_exception_api.h
@@ -25,17 +25,19 @@ limitations under the License.
#include <string>
#include <stdexcept>
+#include "trex_exception.h"
+
/**
* generic exception for RPC errors
*
*/
-class TrexRpcException : public std::runtime_error
-{
+class TrexRpcException : public TrexException {
+
public:
- TrexRpcException() : std::runtime_error("") {
+ TrexRpcException() : TrexException("") {
}
- TrexRpcException(const std::string &what) : std::runtime_error(what) {
+ TrexRpcException(const std::string &what) : TrexException(what) {
}
};