Exception: Manifique::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Manifique::Error
- Defined in:
- lib/manifique/errors.rb
Instance Attribute Summary collapse
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(msg = "Encountered an error", type = "generic", url) ⇒ Error
constructor
A new instance of Error.
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
#type ⇒ Object (readonly)
Returns the value of attribute type.
3 4 5 |
# File 'lib/manifique/errors.rb', line 3 def type @type end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
3 4 5 |
# File 'lib/manifique/errors.rb', line 3 def url @url end |