Exception: Radiator::BaseError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/radiator/base_error.rb

Instance Method Summary collapse

Constructor Details

#initialize(error) ⇒ BaseError

Returns a new instance of BaseError.



3
4
5
# File 'lib/radiator/base_error.rb', line 3

def initialize(error)
  @error = error
end

Instance Method Details

#to_sObject



7
8
9
# File 'lib/radiator/base_error.rb', line 7

def to_s
  JSON[@error] rescue @error
end