class CrystGLFW::Error::Any
- CrystGLFW::Error::Any
- Exception
- Reference
- Object
Overview
Error::Any is the functionally abstract superclass of the different CrystGLFW errors.
Direct Known Subclasses
- CrystGLFW::Error::APIUnavailable
- CrystGLFW::Error::FormatUnavailable
- CrystGLFW::Error::InvalidEnum
- CrystGLFW::Error::InvalidValue
- CrystGLFW::Error::JoystickNotConnected
- CrystGLFW::Error::KeyNotPrintable
- CrystGLFW::Error::NoCurrentContext
- CrystGLFW::Error::NotFullScreen
- CrystGLFW::Error::NotInitialized
- CrystGLFW::Error::NoWindowContext
- CrystGLFW::Error::OutOfMemory
- CrystGLFW::Error::PlatformError
- CrystGLFW::Error::VersionUnavailable
Defined in:
crystglfw/errors/any.crConstructors
-
.new
Returns a new Error::Any with the given error code.
Constructor Detail
def self.new
#
Returns a new Error::Any with the given error code.
This method accepts the following arguments:
- code, the error code yielded by
CrystGLFW.on_error
NOTE This method may be called outside a #run
block definition without triggering an error.