Exception: Precise::TranscriptionError
- Inherits:
-
StandardError
- Object
- StandardError
- Precise::TranscriptionError
- Defined in:
- lib/precise/error_classes.rb
Instance Attribute Summary collapse
-
#exception_type ⇒ Object
readonly
Returns the value of attribute exception_type.
Instance Method Summary collapse
-
#initialize(msg = "unable to transcribe input string", exception_type = :untranscribable) ⇒ TranscriptionError
constructor
A new instance of TranscriptionError.
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_type ⇒ Object (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 |