138template <
typename Dummy>
140 [[nodiscard]]
auto name()
const noexcept ->
const char*
override {
141 return "Tilt Five Error";
144 [[nodiscard]]
auto message(
int ev)
const ->
std::string override {
151template <
typename Dummy>
159 return {
static_cast<int>(e), ErrorCategory::kSingleton};
error_code make_error_code(future_errc __errc) noexcept
C errors for the Tilt Five™ API.
uint32_t T5_Result
Represents an error code that may be returned by the Tilt Five™ API.
#define T5_ERROR_MISC_REMOTE
Miscellaneous remote error.
#define T5_ERROR_DECODE_ERROR
Failed to decode.
#define T5_ERROR_INTERNAL
An internal error occurred.
#define T5_ERROR_TRY_AGAIN
Target is not currently available.
#define T5_ERROR_GFX_CONTEXT_INIT_FAIL
Failed to initialize graphics context.
#define T5_ERROR_INVALID_ARGS
Argument(s) are invalid.
#define T5_ERROR_NOT_CONNECTED
The target is not connected.
#define T5_ERROR_UNAVAILABLE
Target is unavailable.
#define T5_ERROR_INVALID_BUFFER_SIZE
Invalid Buffer Size.
#define T5_ERROR_SERVICE_INCOMPATIBLE
Service incompatible.
#define T5_TIMEOUT
Timeout.
#define T5_ERROR_STRING_OVERFLOW
Overflow during string conversion operation.
#define T5_ERROR_SETTING_UNKNOWN
The requested param is unknown.
#define T5_ERROR_REQUEST_ID_UNKNOWN
Service doesn't understand the request.
#define T5_ERROR_DEVICE_LOST
Device lost.
T5_EXPORT const char * t5GetResultMessage(T5_Result result)
#define T5_ERROR_SETTING_WRONG_TYPE
The requested param has a different type to the requested type.
#define T5_ERROR_NO_SERVICE
Service isn't connected.
#define T5_ERROR_UNSUPPORTED
Action is unsupported.
#define T5_ERROR_IO_FAILURE
Misc IO failure.
#define T5_ERROR_ALREADY_CONNECTED
The target is already connected.
#define T5_ERROR_NO_CONTEXT
No context.
#define T5_PERMISSION_DENIED
Permission denied.
#define T5_ERROR_NO_LIBRARY
No library loaded.
#define T5_SUCCESS
Success.
#define T5_ERROR_TARGET_NOT_FOUND
Target (wand) not found.
#define T5_ERROR_OVERFLOW
Buffer overflow.
#define T5_ERROR_GRAPHICS_API_UNAVAILABLE
Specified graphics API is unavailable.
#define T5_ERROR_INVALID_GEOMETRY
Invalid Geometry.
#define T5_ERROR_INVALID_GFX_CONTEXT
Graphics context is invalid.
#define T5_ERROR_INVALID_STATE
Incorrect state for the request.
Error
Error codes returned by most functions of return type Result.
@ kRequestIdUnknown
Service doesn't understand the request.
@ kStringOverflow
String overflow.
@ kServiceIncompatible
Service incompatible.
@ kSettingWrongType
The requested param has a different type to the requested type.
@ kLibraryUnavailable
Library Unavailable.
@ kAlreadyConnected
Target is already connected.
@ kTryAgain
Target is temporarily unavailable.
@ kGfxApiUnavailable
Specified graphics API is unavailable.
@ kNotConnected
Target is not connected.
@ kSettingUnknown
The requested param is unknown.
@ kGfxContextInitFail
Failed to initialize graphics context.
@ kDecodeError
Failed to decode.
@ kDeviceLost
Device lost.
@ kInvalidGfxContext
Graphics context is invalid.
@ kInvalidArgument
Argument(s) are invalid.
@ kUnsupported
Action is unsupported.
@ kUnavailable
Target is unavailable.
@ kIoFailure
Misc IO failure.
@ kMiscRemote
Miscellaneous remote error.
@ kInvalidState
Incorrect state for the request.
@ kNoService
Service isn't connected.
@ kOverflow
Buffer overflow.
@ kInvalidGeometry
Invalid geometry.
@ kInvalidBuffer
Invalid buffer size.
@ kPermissionDenied
Permission denied.
@ kTargetNotFound
Target (wand) not found.
@ kInternalError
An internal error occurred.