Exception: Spud::RequestError
- Inherits:
-
StandardError
- Object
- StandardError
- Spud::RequestError
- Defined in:
- lib/spud_core/errors.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#item ⇒ Object
Returns the value of attribute item.
-
#request_url ⇒ Object
Returns the value of attribute request_url.
-
#template ⇒ Object
Returns the value of attribute template.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(message) ⇒ RequestError
constructor
A new instance of RequestError.
Constructor Details
#initialize(message) ⇒ RequestError
Returns a new instance of RequestError.
5 6 7 8 |
# File 'lib/spud_core/errors.rb', line 5 def initialize() @template ||= 'layouts/error_page' super() end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
3 4 5 |
# File 'lib/spud_core/errors.rb', line 3 def code @code end |
#item ⇒ Object
Returns the value of attribute item.
2 3 4 |
# File 'lib/spud_core/errors.rb', line 2 def item @item end |
#request_url ⇒ Object
Returns the value of attribute request_url.
2 3 4 |
# File 'lib/spud_core/errors.rb', line 2 def request_url @request_url end |
#template ⇒ Object
Returns the value of attribute template.
2 3 4 |
# File 'lib/spud_core/errors.rb', line 2 def template @template end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
3 4 5 |
# File 'lib/spud_core/errors.rb', line 3 def title @title end |