Exception: Bookingit::UnexpectedShellCommandExit
- Inherits:
-
StandardError
- Object
- StandardError
- Bookingit::UnexpectedShellCommandExit
- Includes:
- GLI::StandardException
- Defined in:
- lib/bookingit/errors.rb
Instance Attribute Summary collapse
-
#command ⇒ Object
readonly
Returns the value of attribute command.
-
#stderr ⇒ Object
readonly
Returns the value of attribute stderr.
-
#stdout ⇒ Object
readonly
Returns the value of attribute stdout.
Instance Method Summary collapse
- #exit_code ⇒ Object
-
#initialize(command, stdout, stderr) ⇒ UnexpectedShellCommandExit
constructor
A new instance of UnexpectedShellCommandExit.
Constructor Details
#initialize(command, stdout, stderr) ⇒ UnexpectedShellCommandExit
6 7 8 9 10 |
# File 'lib/bookingit/errors.rb', line 6 def initialize(command,stdout,stderr) @command = command @stdout = stdout @stderr = stderr end |
Instance Attribute Details
#command ⇒ Object (readonly)
Returns the value of attribute command.
5 6 7 |
# File 'lib/bookingit/errors.rb', line 5 def command @command end |
#stderr ⇒ Object (readonly)
Returns the value of attribute stderr.
5 6 7 |
# File 'lib/bookingit/errors.rb', line 5 def stderr @stderr end |
#stdout ⇒ Object (readonly)
Returns the value of attribute stdout.
5 6 7 |
# File 'lib/bookingit/errors.rb', line 5 def stdout @stdout end |
Instance Method Details
#exit_code ⇒ Object
12 13 14 |
# File 'lib/bookingit/errors.rb', line 12 def exit_code 126 end |