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.
474 475 476 477 478 479 480 481 482 483 |
# File 'lib/vips.rb', line 474 def initialize msg = nil if msg @details = msg elsif Vips::vips_error_buffer != "" @details = Vips::vips_error_buffer Vips::vips_error_clear else @details = nil end end |
Instance Method Details
#to_s ⇒ String
Pretty-print a Vips::Error.
488 489 490 491 492 493 494 |
# File 'lib/vips.rb', line 488 def to_s if @details != nil @details else super.to_s end end |