Exception: Overseer::TestingControl::Rails::ProtocolFailure
- Inherits:
-
StandardError
- Object
- StandardError
- Overseer::TestingControl::Rails::ProtocolFailure
- Defined in:
- app/controllers/overseer/testing_control/rails/application_controller.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#detail ⇒ Object
readonly
Returns the value of attribute detail.
-
#pointer ⇒ Object
readonly
Returns the value of attribute pointer.
-
#retryable ⇒ Object
readonly
Returns the value of attribute retryable.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(status:, code:, title:, detail:, pointer: nil, retryable: false) ⇒ ProtocolFailure
constructor
A new instance of ProtocolFailure.
Constructor Details
#initialize(status:, code:, title:, detail:, pointer: nil, retryable: false) ⇒ ProtocolFailure
Returns a new instance of ProtocolFailure.
9 10 11 12 13 14 15 16 17 |
# File 'app/controllers/overseer/testing_control/rails/application_controller.rb', line 9 def initialize(status:, code:, title:, detail:, pointer: nil, retryable: false) @status = status @code = code @title = title @detail = detail @pointer = pointer @retryable = retryable super(detail) end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
7 8 9 |
# File 'app/controllers/overseer/testing_control/rails/application_controller.rb', line 7 def code @code end |
#detail ⇒ Object (readonly)
Returns the value of attribute detail.
7 8 9 |
# File 'app/controllers/overseer/testing_control/rails/application_controller.rb', line 7 def detail @detail end |
#pointer ⇒ Object (readonly)
Returns the value of attribute pointer.
7 8 9 |
# File 'app/controllers/overseer/testing_control/rails/application_controller.rb', line 7 def pointer @pointer end |
#retryable ⇒ Object (readonly)
Returns the value of attribute retryable.
7 8 9 |
# File 'app/controllers/overseer/testing_control/rails/application_controller.rb', line 7 def retryable @retryable end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
7 8 9 |
# File 'app/controllers/overseer/testing_control/rails/application_controller.rb', line 7 def status @status end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
7 8 9 |
# File 'app/controllers/overseer/testing_control/rails/application_controller.rb', line 7 def title @title end |