Exception: TikaMasala::TikaError
- Inherits:
-
StandardError
- Object
- StandardError
- TikaMasala::TikaError
- Defined in:
- lib/tika-masala/exceptions/tika_error.rb
Instance Attribute Summary collapse
-
#stdout ⇒ Object
readonly
Returns the value of attribute stdout.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ TikaError
constructor
A new instance of TikaError.
Constructor Details
#initialize(options = {}) ⇒ TikaError
Returns a new instance of TikaError.
5 6 7 8 9 |
# File 'lib/tika-masala/exceptions/tika_error.rb', line 5 def initialize( = {}) @stdout = .fetch(:stdout, '') super("Non-zero exit code (#{[:exitstatus]}): #{[:stderr]}") end |
Instance Attribute Details
#stdout ⇒ Object (readonly)
Returns the value of attribute stdout.
3 4 5 |
# File 'lib/tika-masala/exceptions/tika_error.rb', line 3 def stdout @stdout end |