Exception: Pact::FfiError

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

Instance Method Summary collapse

Constructor Details

#initialize(msg, reason, status) ⇒ FfiError

Returns a new instance of FfiError.



14
15
16
17
18
19
20
# File 'lib/pact.rb', line 14

def initialize(msg, reason, status)
  super(msg)

  @msg = msg
  @reason = reason
  @status = status
end

Instance Method Details

#messageObject



22
23
24
# File 'lib/pact.rb', line 22

def message
  "FFI error: reason: #{@reason}, status: #{@status}, message: #{@msg}"
end