Exception: DatabricksSql::HTTPError
- Defined in:
- lib/databricks_sql/errors.rb
Direct Known Subclasses
AuthenticationError, AuthorizationError, NotFoundError, RateLimitError, ServerError
Instance Attribute Summary collapse
-
#response_body ⇒ Object
readonly
Returns the value of attribute response_body.
-
#status_code ⇒ Object
readonly
Returns the value of attribute status_code.
Instance Method Summary collapse
-
#initialize(message, status_code:, response_body: nil) ⇒ HTTPError
constructor
A new instance of HTTPError.
Constructor Details
#initialize(message, status_code:, response_body: nil) ⇒ HTTPError
Returns a new instance of HTTPError.
22 23 24 25 26 |
# File 'lib/databricks_sql/errors.rb', line 22 def initialize(, status_code:, response_body: nil) @status_code = status_code @response_body = response_body super() end |
Instance Attribute Details
#response_body ⇒ Object (readonly)
Returns the value of attribute response_body.
20 21 22 |
# File 'lib/databricks_sql/errors.rb', line 20 def response_body @response_body end |
#status_code ⇒ Object (readonly)
Returns the value of attribute status_code.
20 21 22 |
# File 'lib/databricks_sql/errors.rb', line 20 def status_code @status_code end |