Exception: Blacksheep::ActionError
- Inherits:
-
StandardError
- Object
- StandardError
- Blacksheep::ActionError
- Defined in:
- lib/blacksheep/action_error.rb
Instance Attribute Summary collapse
-
#identifier ⇒ Object
readonly
Returns the value of attribute identifier.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(message, title: 'Error', identifier: 'undefined', status: :internal_server_error) ⇒ ActionError
constructor
A new instance of ActionError.
Constructor Details
#initialize(message, title: 'Error', identifier: 'undefined', status: :internal_server_error) ⇒ ActionError
Returns a new instance of ActionError.
7 8 9 10 11 12 13 |
# File 'lib/blacksheep/action_error.rb', line 7 def initialize(, title: 'Error', identifier: 'undefined', status: :internal_server_error) @identifier = identifier @title = title @status = status super() end |
Instance Attribute Details
#identifier ⇒ Object (readonly)
Returns the value of attribute identifier.
5 6 7 |
# File 'lib/blacksheep/action_error.rb', line 5 def identifier @identifier end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
5 6 7 |
# File 'lib/blacksheep/action_error.rb', line 5 def status @status end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
5 6 7 |
# File 'lib/blacksheep/action_error.rb', line 5 def title @title end |