71 static Result fail (
const String& errorMessage) noexcept;
75 bool wasOk()
const noexcept;
81 bool failed()
const noexcept;
86 operator bool()
const noexcept;
91 bool operator!()
const noexcept;
96 const String& getErrorMessage()
const noexcept;
104 bool operator== (
const Result& other)
const noexcept;
105 bool operator!= (
const Result& other)
const noexcept;
116 operator int()
const;
117 operator void*()
const;
#define JUCE_API
This macro is added to all JUCE public class declarations.
static Result ok() noexcept
Creates and returns a 'successful' result.
Represents the 'success' or 'failure' of an operation, and holds an associated error message to descr...