Exception: Imgry::Error

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

Instance Method Summary collapse

Constructor Details

#initialize(msg = nil) ⇒ Error

Returns a new instance of Error.



31
32
33
34
35
36
37
# File 'lib/imgry.rb', line 31

def initialize(msg=nil)
  msg ||= "unspecified"
  super("#{self.class}: #{msg}")
  # TODO... we can parse this out to be cleaner.. human readable
  # .. or we add the messages to a constant for each thing or something..
  
end