Exception: DatabricksSql::HTTPError

Inherits:
Error
  • Object
show all
Defined in:
lib/databricks_sql/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(message, status_code:, response_body: nil)
  @status_code = status_code
  @response_body = response_body
  super(message)
end

Instance Attribute Details

#response_bodyObject (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_codeObject (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