Exception: SFML::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/sfml.rb

Overview

Root of the ruby-sfml exception hierarchy. Every CSFML-side failure surfaces as something inheriting from SFML::Error, so rescue SFML::Error is the catch-all.

Subclasses let callers target a domain:

rescue SFML::LoadError       # file / decode / GPU upload failed
rescue SFML::AudioError      # OpenAL / capture / playback issues
rescue SFML::NetworkError    # socket / packet framing
rescue SFML::ShaderError     # GLSL compile / uniform / link
rescue SFML::GraphicsError   # render-side issues other than load
rescue SFML::WindowError     # window/context creation / events