Exception: Oximg::ProcessingError

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

Overview

The executable ran and refused: an unreadable source, an unsupported format, a cap it was configured with. The message is the binary's own stderr, which already names what it refused.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, status = nil) ⇒ ProcessingError

Returns a new instance of ProcessingError.



31
32
33
34
# File 'lib/oximg.rb', line 31

def initialize(message, status = nil)
  super(message)
  @status = status
end

Instance Attribute Details

#statusObject (readonly)

Exit status: 2 is a usage or configuration error, 1 a processing failure.



29
30
31
# File 'lib/oximg.rb', line 29

def status
  @status
end