Exception: Altertable::Lakehouse::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/altertable/lakehouse.rb,
lib/altertable/lakehouse/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, operation: nil, http_method: nil, http_path: nil, status_code: nil, retriable: false, request_id: nil, cause: nil) ⇒ Error

Returns a new instance of Error.



6
7
8
9
10
11
12
13
14
15
# File 'lib/altertable/lakehouse/errors.rb', line 6

def initialize(message, operation: nil, http_method: nil, http_path: nil, status_code: nil, retriable: false, request_id: nil, cause: nil)
  super(message)
  @operation = operation
  @http_method = http_method
  @http_path = http_path
  @status_code = status_code
  @retriable = retriable
  @request_id = request_id
  @cause = cause
end

Instance Attribute Details

#causeObject (readonly)

Returns the value of attribute cause.



4
5
6
# File 'lib/altertable/lakehouse/errors.rb', line 4

def cause
  @cause
end

#http_methodObject (readonly)

Returns the value of attribute http_method.



4
5
6
# File 'lib/altertable/lakehouse/errors.rb', line 4

def http_method
  @http_method
end

#http_pathObject (readonly)

Returns the value of attribute http_path.



4
5
6
# File 'lib/altertable/lakehouse/errors.rb', line 4

def http_path
  @http_path
end

#operationObject (readonly)

Returns the value of attribute operation.



4
5
6
# File 'lib/altertable/lakehouse/errors.rb', line 4

def operation
  @operation
end

#request_idObject (readonly)

Returns the value of attribute request_id.



4
5
6
# File 'lib/altertable/lakehouse/errors.rb', line 4

def request_id
  @request_id
end

#retriableObject (readonly)

Returns the value of attribute retriable.



4
5
6
# File 'lib/altertable/lakehouse/errors.rb', line 4

def retriable
  @retriable
end

#status_codeObject (readonly)

Returns the value of attribute status_code.



4
5
6
# File 'lib/altertable/lakehouse/errors.rb', line 4

def status_code
  @status_code
end