From d713c5349e1a8861ae117e0678c2c43ecf42831c Mon Sep 17 00:00:00 2001 From: Florian Reimold <11774314+FlorianReimold@users.noreply.github.com> Date: Mon, 4 Mar 2024 17:48:51 +0100 Subject: [PATCH] Expanded Udpcap::Error API with GetErrorCode() --- udpcap/include/udpcap/error.h | 5 +++++ 1 file changed, 5 insertions(+) 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 //////////////////////////////////////////