Exception: Imgry::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Imgry::Error
- Defined in:
- lib/imgry.rb
Direct Known Subclasses
FileUnreadableError, FileUnwritableError, InvalidImageError, UnsupportedFormatError
Instance Method Summary collapse
-
#initialize(msg = nil) ⇒ Error
constructor
A new instance of Error.
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 |