Exception: Prescient::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/prescient/errors.rb

Overview

Base error class for all Prescient-specific errors

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, provider: nil, operation: nil, status: nil) ⇒ Error

Returns a new instance of Error.



10
11
12
13
14
15
16
# File 'lib/prescient/errors.rb', line 10

def initialize(message = nil, provider: nil, operation: nil, status: nil)
  super(message)

  @provider = provider
  @operation = operation
  @status = status
end

Instance Attribute Details

#operationObject (readonly)

Returns the value of attribute operation.



7
8
9
# File 'lib/prescient/errors.rb', line 7

def operation
  @operation
end

#providerObject (readonly)

Returns the value of attribute provider.



6
7
8
# File 'lib/prescient/errors.rb', line 6

def provider
  @provider
end

#statusObject (readonly)

Returns the value of attribute status.



8
9
10
# File 'lib/prescient/errors.rb', line 8

def status
  @status
end