Exception: Ruby2D::InvalidImageFileError

Inherits:
Error
  • Object
show all
Defined in:
lib/ruby2d/pixmap.rb

Overview

Error when failed to load an image

Instance Method Summary collapse

Constructor Details

#initialize(file_path) ⇒ InvalidImageFileError

Returns a new instance of InvalidImageFileError.



8
9
10
# File 'lib/ruby2d/pixmap.rb', line 8

def initialize(file_path)
  super("Failed to load image file: #{file_path}")
end