Exception: Reviewed::BaseError

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

Direct Known Subclasses

ApiError, ConfigurationError, ResourceNotFound

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(opts = {}) ⇒ BaseError

Returns a new instance of BaseError.



41
42
43
44
# File 'lib/reviewed.rb', line 41

def initialize(opts={})
  @url = opts[:url]
  super(opts[:msg])
end

Instance Attribute Details

#urlObject

Returns the value of attribute url.



39
40
41
# File 'lib/reviewed.rb', line 39

def url
  @url
end