Exception: Sbmt::Pact::FfiError

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

Instance Method Summary collapse

Constructor Details

#initialize(msg, reason, status) ⇒ FfiError

Returns a new instance of FfiError.



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

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

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

Instance Method Details

#messageObject



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

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