Class: SelfData::ConversionError

Inherits:
Error
  • Object
show all
Defined in:
lib/self_data/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(format = nil, real_error = nil) ⇒ ConversionError

Returns a new instance of ConversionError.



27
28
29
30
31
# File 'lib/self_data/errors.rb', line 27

def initialize(format = nil, real_error = nil)
  @format = format
  @real_error = real_error
  super("#{format}: #{real_error.inspect}")
end

Instance Attribute Details

#formatObject (readonly)

Returns the value of attribute format.



25
26
27
# File 'lib/self_data/errors.rb', line 25

def format
  @format
end

#real_errorObject (readonly)

Returns the value of attribute real_error.



25
26
27
# File 'lib/self_data/errors.rb', line 25

def real_error
  @real_error
end