Exception: StripeMock::ServerTimeoutError

Inherits:
StripeMockError show all
Defined in:
lib/stripe_mock/errors/server_timeout_error.rb

Instance Attribute Summary collapse

Attributes inherited from StripeMockError

#message

Instance Method Summary collapse

Methods inherited from StripeMockError

#to_s

Constructor Details

#initialize(associated_error) ⇒ ServerTimeoutError

Returns a new instance of ServerTimeoutError.



6
7
8
9
# File 'lib/stripe_mock/errors/server_timeout_error.rb', line 6

def initialize(associated_error)
  @associated_error = associated_error
  super("Unable to connect to stripe mock server (did you forget to run `$ stripe-mock-server`?)")
end

Instance Attribute Details

#associated_errorObject (readonly)

Returns the value of attribute associated_error.



4
5
6
# File 'lib/stripe_mock/errors/server_timeout_error.rb', line 4

def associated_error
  @associated_error
end