omni::core::ResultError

Defined in omni/core/ResultError.h

class ResultError : public std::exception

Exception object that encapsulates a Result along with a customizable message.

Public Functions

inline ResultError(Result result)

Constructor.

inline ResultError(Result result, std::string msg)

Constructor with custom messages.

inline virtual const char *what() const noexcept override

Returns a human readable description of the error.

inline Result getResult() const noexcept

Return the result code that describes the error.