Skip to content

Commit

Permalink
implement std::exception for MetadataError
Browse files Browse the repository at this point in the history
  • Loading branch information
tlambert03 committed Dec 1, 2024
1 parent 870fdb1 commit bfd56f7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions MMDevice/ImageMetadata.h
Original file line number Diff line number Diff line change
Expand Up @@ -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_;
};
Expand Down

0 comments on commit bfd56f7

Please sign in to comment.