Exception: Inttegro::APIError
- Extended by:
- T::Sig
- Defined in:
- lib/inttegro/errors.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#cause ⇒ Object
readonly
Returns the value of attribute cause.
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#detail ⇒ Object
readonly
Returns the value of attribute detail.
-
#fix_code ⇒ Object
readonly
Returns the value of attribute fix_code.
-
#request_id ⇒ Object
readonly
Returns the value of attribute request_id.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(message, status:, code: nil, type: nil, url: nil, detail: nil, fix_code: nil, cause: nil, body: nil, data: nil, request_id: nil) ⇒ APIError
constructor
A new instance of APIError.
Constructor Details
#initialize(message, status:, code: nil, type: nil, url: nil, detail: nil, fix_code: nil, cause: nil, body: nil, data: nil, request_id: nil) ⇒ APIError
Returns a new instance of APIError.
65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 |
# File 'lib/inttegro/errors.rb', line 65 def initialize( , status:, code: nil, type: nil, url: nil, detail: nil, fix_code: nil, cause: nil, body: nil, data: nil, request_id: nil ) super() @status = status @code = code @type = type @url = url @detail = detail @fix_code = fix_code @cause = cause @body = body @data = data @request_id = request_id end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
45 46 47 |
# File 'lib/inttegro/errors.rb', line 45 def body @body end |
#cause ⇒ Object (readonly)
Returns the value of attribute cause.
45 46 47 |
# File 'lib/inttegro/errors.rb', line 45 def cause @cause end |
#code ⇒ Object (readonly)
Returns the value of attribute code.
45 46 47 |
# File 'lib/inttegro/errors.rb', line 45 def code @code end |
#data ⇒ Object (readonly)
Returns the value of attribute data.
48 49 50 |
# File 'lib/inttegro/errors.rb', line 48 def data @data end |
#detail ⇒ Object (readonly)
Returns the value of attribute detail.
45 46 47 |
# File 'lib/inttegro/errors.rb', line 45 def detail @detail end |
#fix_code ⇒ Object (readonly)
Returns the value of attribute fix_code.
45 46 47 |
# File 'lib/inttegro/errors.rb', line 45 def fix_code @fix_code end |
#request_id ⇒ Object (readonly)
Returns the value of attribute request_id.
45 46 47 |
# File 'lib/inttegro/errors.rb', line 45 def request_id @request_id end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
42 43 44 |
# File 'lib/inttegro/errors.rb', line 42 def status @status end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
45 46 47 |
# File 'lib/inttegro/errors.rb', line 45 def type @type end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
45 46 47 |
# File 'lib/inttegro/errors.rb', line 45 def url @url end |