class Espresso::FormatUnavailableError

Overview

Error indicating the desired format is not supported or understood. If emitted during window creation, the requested pixel format is not supported. If emitted when querying the clipboard, the contents of the clipboard could not be converted to the requested format.

If emitted during window creation, one or more hard constraints did not match any of the available pixel formats. If your application is sufficiently flexible, downgrade your requirements and try again. Otherwise, inform the user that their machine does not match your requirements.

If emitted when querying the clipboard, ignore the error or report it to the user, as appropriate.

Defined in:

espresso/format_unavailable_error.cr

Instance Method Summary

Instance methods inherited from class Espresso::GLFWError

code : LibGLFW::ErrorCode code

Instance Method Detail

def code : LibGLFW::ErrorCode #

Underlying value that represents the error type.


[View source]