Exception: Pact::FfiError

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

Instance Method Summary collapse

Constructor Details

#initialize(msg, reason, status) ⇒ FfiError

Returns a new instance of FfiError.



19
20
21
22
23
24
25
# File 'lib/pact.rb', line 19

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

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

Instance Method Details

#messageObject



27
28
29
# File 'lib/pact.rb', line 27

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