Exception: Pdfsink::CommandError
- Defined in:
- lib/pdfsink/error.rb
Overview
Raised when the pdfsink-rs binary exits non-zero.
Carries the failing command, exit status, and captured stderr.
Instance Attribute Summary collapse
-
#command ⇒ Array<String>
readonly
The argv that was executed.
-
#status ⇒ Integer?
readonly
The process exit status.
-
#stderr ⇒ String
readonly
Captured standard error.
Instance Method Summary collapse
-
#initialize(message, command:, status:, stderr:) ⇒ CommandError
constructor
A new instance of CommandError.
Constructor Details
#initialize(message, command:, status:, stderr:) ⇒ CommandError
Returns a new instance of CommandError.
23 24 25 26 27 28 |
# File 'lib/pdfsink/error.rb', line 23 def initialize(, command:, status:, stderr:) @command = command @status = status @stderr = stderr super() end |
Instance Attribute Details
#command ⇒ Array<String> (readonly)
Returns the argv that was executed.
15 16 17 |
# File 'lib/pdfsink/error.rb', line 15 def command @command end |
#status ⇒ Integer? (readonly)
Returns the process exit status.
18 19 20 |
# File 'lib/pdfsink/error.rb', line 18 def status @status end |
#stderr ⇒ String (readonly)
Returns captured standard error.
21 22 23 |
# File 'lib/pdfsink/error.rb', line 21 def stderr @stderr end |