Exception: SDLRuby::SDLError

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

Instance Method Summary collapse

Constructor Details

#initialize(msg = nil) ⇒ SDLError

Returns a new instance of SDLError.



3
4
5
6
# File 'lib/SDLRuby/sdl_error.rb', line 3

def initialize(msg = nil)
  super(msg || SDL.last_error_message)
  SDL.SDL_ClearError
end