tp::RuntimeError class

A generic Tephra runtime error.

Derived classes

class AssertionError
Internal Tephra error violating an assertion. May be caused by a previous invalid usage.
class DeviceLostError
Operation failed because the device was lost. Subsequent device operations will fail, too.
class OutOfDateError
A surface has changed in such a way that it is no longer compatible with the swapchain, and further presentation requests using the swapchain will fail.
class OutOfMemoryError
Allocation failed due to overcommitting of memory.
class SurfaceLostError
Operation failed because the surface was lost. Subsequent surface operations will fail, too.
class TooManyObjectsError
Too many objects of the same type have already been created.
class UnsupportedOperationError
The operation could not be completed because it is not supported by the platform or device.

Public static functions

static auto getErrorTypeDescription(ErrorType type) -> std::string
Formats the error type name and description as a string.

Public functions

auto getErrorType() const -> ErrorType noexcept
Returns the type of the error.
void raise() const virtual
Throws this error as an exception.