diff --git a/udpcap/include/udpcap/error.h b/udpcap/include/udpcap/error.h index 517c53a..6ed90e1 100644 --- a/udpcap/include/udpcap/error.h +++ b/udpcap/include/udpcap/error.h @@ -90,6 +90,11 @@ namespace Udpcap return message_; } + inline ErrorCode GetErrorCode() const + { + return error_code_; + } + ////////////////////////////////////////// // Operators //////////////////////////////////////////