Exception: Forcast::Application::Error::General
- Inherits:
-
StandardError
- Object
- StandardError
- Forcast::Application::Error::General
- Defined in:
- lib/forcast/controllers/application/error.rb
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
- #fetch_json ⇒ Object
-
#initialize(_message = nil) ⇒ General
constructor
A new instance of General.
Constructor Details
#initialize(_message = nil) ⇒ General
Returns a new instance of General.
8 9 10 |
# File 'lib/forcast/controllers/application/error.rb', line 8 def initialize(=nil) @message = || 'Error General' end |
Instance Attribute Details
#error ⇒ Object (readonly)
Returns the value of attribute error.
6 7 8 |
# File 'lib/forcast/controllers/application/error.rb', line 6 def error @error end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
6 7 8 |
# File 'lib/forcast/controllers/application/error.rb', line 6 def @message end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
6 7 8 |
# File 'lib/forcast/controllers/application/error.rb', line 6 def status @status end |
Instance Method Details
#fetch_json ⇒ Object
12 13 14 |
# File 'lib/forcast/controllers/application/error.rb', line 12 def fetch_json Helpers::Render.json(error, , status) end |