Exception: Altertable::Lakehouse::Error

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

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

#causeException? (readonly)

Returns the value of attribute cause.

Returns:

  • (Exception, nil)


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

def cause
  @cause
end

#http_methodString? (readonly)

Returns the value of attribute http_method.

Returns:

  • (String, nil)


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

def http_method
  @http_method
end

#http_pathString? (readonly)

Returns the value of attribute http_path.

Returns:

  • (String, nil)


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

def http_path
  @http_path
end

#operationString? (readonly)

Returns the value of attribute operation.

Returns:

  • (String, nil)


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

def operation
  @operation
end

#request_idString? (readonly)

Returns the value of attribute request_id.

Returns:

  • (String, nil)


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

def request_id
  @request_id
end

#retriableBoolean (readonly)

Returns the value of attribute retriable.

Returns:

  • (Boolean)


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

def retriable
  @retriable
end

#status_codeInteger? (readonly)

Returns the value of attribute status_code.

Returns:

  • (Integer, nil)


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

def status_code
  @status_code
end