From f7c36c46e9747eb60deaaa12eedac9863d57d62c Mon Sep 17 00:00:00 2001 From: Peter Thorson Date: Sun, 17 Mar 2013 18:22:27 -0500 Subject: [PATCH] adds new unit testing utility error code --- websocketpp/error.hpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/websocketpp/error.hpp b/websocketpp/error.hpp index 01f7146ba2..299fc3da94 100644 --- a/websocketpp/error.hpp +++ b/websocketpp/error.hpp @@ -28,6 +28,8 @@ #ifndef WEBSOCKETPP_ERROR_HPP #define WEBSOCKETPP_ERROR_HPP +#include + #include #include @@ -76,7 +78,10 @@ enum value { invalid_utf8, /// Bad or unknown connection - bad_connection + bad_connection, + + /// Unit testing utility error code + test }; // enum value @@ -116,6 +121,8 @@ public: return "Invalid UTF-8"; case error::bad_connection: return "Bad Connection"; + case error::test: + return "Test Error"; default: return "Unknown"; }