Exception: Manifique::Error

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg = "Encountered an error", type = "generic", url) ⇒ Error

Returns a new instance of Error.



5
6
7
8
9
# File 'lib/manifique/errors.rb', line 5

def initialize(msg="Encountered an error", type="generic", url)
  @type = type
  @url = url
  super(msg)
end

Instance Attribute Details

#typeObject (readonly)

Returns the value of attribute type.



3
4
5
# File 'lib/manifique/errors.rb', line 3

def type
  @type
end

#urlObject (readonly)

Returns the value of attribute url.



3
4
5
# File 'lib/manifique/errors.rb', line 3

def url
  @url
end