Exception: Bookingit::UnexpectedShellCommandExit

Inherits:
StandardError
  • Object
show all
Includes:
GLI::StandardException
Defined in:
lib/bookingit/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#commandObject (readonly)

Returns the value of attribute command.



5
6
7
# File 'lib/bookingit/errors.rb', line 5

def command
  @command
end

#stderrObject (readonly)

Returns the value of attribute stderr.



5
6
7
# File 'lib/bookingit/errors.rb', line 5

def stderr
  @stderr
end

#stdoutObject (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_codeObject



12
13
14
# File 'lib/bookingit/errors.rb', line 12

def exit_code
  126
end