From bfd56f73d422c1ec9c6d501437de60dd5504cafa Mon Sep 17 00:00:00 2001 From: Talley Lambert Date: Sun, 1 Dec 2024 18:36:02 -0500 Subject: [PATCH] implement std::exception for MetadataError --- MMDevice/ImageMetadata.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/MMDevice/ImageMetadata.h b/MMDevice/ImageMetadata.h index 212d7b084..ee27aeae1 100644 --- a/MMDevice/ImageMetadata.h +++ b/MMDevice/ImageMetadata.h @@ -55,6 +55,9 @@ class MetadataError return message_; } + /// Implements std::exception interface. + virtual const char* what() const throw() { return message_.c_str(); } + private: std::string message_; };