class Vips::Error
The ruby-vips error class.
Public Class Methods
Source
# File lib/vips.rb, line 624 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
@param msg [String] The error message. If this is not supplied, grab
and clear the vips error buffer and use that.
Public Instance Methods
Source
# File lib/vips.rb, line 638 def to_s if !@details.nil? @details else super.to_s end end
Pretty-print a {Vips::Error}.
@return [String] The error message
Calls superclass method