Exception: Librarian::Posix::CommandFailure

Inherits:
Error
  • Object
show all
Defined in:
lib/librarian/posix.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#commandObject

Returns the value of attribute command


45
46
47
# File 'lib/librarian/posix.rb', line 45

def command
  @command
end

#statusObject

Returns the value of attribute status


45
46
47
# File 'lib/librarian/posix.rb', line 45

def status
  @status
end

Class Method Details

.raise!(command, status, message) ⇒ Object


36
37
38
39
40
41
42
# File 'lib/librarian/posix.rb', line 36

def raise!(command, status, message)
  ex = new(message)
  ex.command = command
  ex.status = status
  ex.set_backtrace caller
  raise ex
end