Skip to content

ESdlError

Exception type for SDL errors.

When an underlying C-API SDL API returns an error code, an exception of this type will be raised. The exception message is provided by the underlying SDL library.

When a wrapped API can raise an exception, this is mentioned in the API's documentation.

Definition

Unit: Neslib.Sdl3.Basics

type ESdlError = class(Exception) ... end

Inheritance

Inherits: Exception

See Also

Remarks

Is used to raise the last error that occurred on the current thread.

It is possible for multiple errors to occur. Only the last error is raised.

SDL Exceptions can be disabled by overriding TSdlApp.HandleError.