Exception: Precise::TranscriptionError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/precise/error_classes.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg = "unable to transcribe input string", exception_type = :untranscribable) ⇒ TranscriptionError

Returns a new instance of TranscriptionError.



5
6
7
8
# File 'lib/precise/error_classes.rb', line 5

def initialize(msg="unable to transcribe input string", exception_type=:untranscribable)
  @exception_type = exception_type
  super(msg)
end

Instance Attribute Details

#exception_typeObject (readonly)

Returns the value of attribute exception_type.



9
10
11
# File 'lib/precise/error_classes.rb', line 9

def exception_type
  @exception_type
end