Exception: Webhookdb::ExceptionCarrier
- Inherits:
-
WebhookdbError
- Object
- StandardError
- WebhookdbError
- Webhookdb::ExceptionCarrier
- Defined in:
- lib/webhookdb.rb
Overview
This exception is rescued in the API and returned to the caller via merror!
. This is mostly used in synchronously-processed replicators that need to return very specific types of errors during processing. This is very rare.
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#headers ⇒ Object
readonly
Returns the value of attribute headers.
-
#more ⇒ Object
readonly
Returns the value of attribute more.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(status, message, code: nil, more: {}, headers: {}) ⇒ ExceptionCarrier
constructor
A new instance of ExceptionCarrier.
Constructor Details
#initialize(status, message, code: nil, more: {}, headers: {}) ⇒ ExceptionCarrier
Returns a new instance of ExceptionCarrier.
156 157 158 159 160 161 162 |
# File 'lib/webhookdb.rb', line 156 def initialize(status, , code: nil, more: {}, headers: {}) super() @status = status @code = code @more = more @headers = headers end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
154 155 156 |
# File 'lib/webhookdb.rb', line 154 def code @code end |
#headers ⇒ Object (readonly)
Returns the value of attribute headers.
154 155 156 |
# File 'lib/webhookdb.rb', line 154 def headers @headers end |
#more ⇒ Object (readonly)
Returns the value of attribute more.
154 155 156 |
# File 'lib/webhookdb.rb', line 154 def more @more end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
154 155 156 |
# File 'lib/webhookdb.rb', line 154 def status @status end |