Exception: Leakferret::BinaryInvocationError
- Defined in:
- lib/leakferret/error.rb
Overview
Raised when the binary runs but exits with an unexpected status (anything other than 0 for a clean run or 1 for findings present).
Instance Attribute Summary collapse
-
#exit_status ⇒ Integer
readonly
The binary's process exit status.
-
#stderr ⇒ String
readonly
Captured standard error from the failed invocation.
Instance Method Summary collapse
-
#initialize(message, exit_status:, stderr:) ⇒ BinaryInvocationError
constructor
A new instance of BinaryInvocationError.
Constructor Details
#initialize(message, exit_status:, stderr:) ⇒ BinaryInvocationError
Returns a new instance of BinaryInvocationError.
23 24 25 26 27 |
# File 'lib/leakferret/error.rb', line 23 def initialize(, exit_status:, stderr:) super() @exit_status = exit_status @stderr = stderr end |
Instance Attribute Details
#exit_status ⇒ Integer (readonly)
Returns the binary's process exit status.
15 16 17 |
# File 'lib/leakferret/error.rb', line 15 def exit_status @exit_status end |
#stderr ⇒ String (readonly)
Returns captured standard error from the failed invocation.
18 19 20 |
# File 'lib/leakferret/error.rb', line 18 def stderr @stderr end |