1 #ifndef SDL_TBMF_ERRORS_H
2 #define SDL_TBMF_ERRORS_H
8 etSuccess
, etNoError
= 0, etNone
= 0, // No errors
9 etFailure
, etUnknown
= 1, // Unknown/unspecified error
25 Error(ErrorType e
= etUnknown
, const char *s
= ""):
26 mType(e
), mString(s
) {}
27 Error(const char *s
): mType(etUnknown
), mString(s
) {}
29 bool operator==(const Error
&o
) const { return (mType
== o
.mType
); }
33 ErrorType
type() const { return mType
; }
34 const char *toString() const { return mString
; }
40 static const char *const mErrorStrings
[etNumberOfErrors
];
44 } // namespace sdl_tbmf
46 #endif /* SDL_TBMF_ERRORS_H */