Exception: Vips::Error
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Vips::Error
- Defined in:
- lib/vips.rb
Overview
The ruby-vips error class.
Instance Method Summary collapse
-
#initialize(msg = nil) ⇒ Error
constructor
A new instance of Error.
-
#to_s ⇒ String
Pretty-print a Error .
Constructor Details
#initialize(msg = nil) ⇒ Error
Returns a new instance of Error.
Parameters:
-
msg
(String)
(defaults to: nil)
—
The error message. If this is not supplied, grab and clear the vips error buffer and use that.
Instance Method Details
#to_s ⇒ String
Pretty-print a Vips::Error .
Returns:
-
(String)
—
The error message
606 607 608 609 610 611 612
# File 'lib/vips.rb', line 606 def to_s if !@details.nil? @details else super.to_s end end