Class: TesseractFFI::TessException

Inherits:
Gem::Exception
  • Object
show all
Defined in:
lib/tesseract_ffi/tess_exception.rb

Overview

class TessException

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(error_msg) ⇒ TessException

Returns a new instance of TessException.



7
8
9
# File 'lib/tesseract_ffi/tess_exception.rb', line 7

def initialize(error_msg)
  @error = error_msg
end

Instance Attribute Details

#errorObject (readonly)

Returns the value of attribute error.



6
7
8
# File 'lib/tesseract_ffi/tess_exception.rb', line 6

def error
  @error
end