Exception: Opendoor::PartnerSdk::ApiError
- Inherits:
-
StandardError
- Object
- StandardError
- Opendoor::PartnerSdk::ApiError
- Defined in:
- lib/opendoor/partner_sdk/errors.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#graphql_errors ⇒ Object
readonly
Returns the value of attribute graphql_errors.
-
#status_code ⇒ Object
readonly
Returns the value of attribute status_code.
Instance Method Summary collapse
-
#initialize(message, code, status_code, graphql_errors = nil) ⇒ ApiError
constructor
A new instance of ApiError.
Constructor Details
#initialize(message, code, status_code, graphql_errors = nil) ⇒ ApiError
Returns a new instance of ApiError.
16 17 18 19 20 21 |
# File 'lib/opendoor/partner_sdk/errors.rb', line 16 def initialize(, code, status_code, graphql_errors = nil) super() @code = code @status_code = status_code @graphql_errors = graphql_errors end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
14 15 16 |
# File 'lib/opendoor/partner_sdk/errors.rb', line 14 def code @code end |
#graphql_errors ⇒ Object (readonly)
Returns the value of attribute graphql_errors.
14 15 16 |
# File 'lib/opendoor/partner_sdk/errors.rb', line 14 def graphql_errors @graphql_errors end |
#status_code ⇒ Object (readonly)
Returns the value of attribute status_code.
14 15 16 |
# File 'lib/opendoor/partner_sdk/errors.rb', line 14 def status_code @status_code end |