Exception: Precise::NotATranscriptionError
- Inherits:
-
StandardError
- Object
- StandardError
- Precise::NotATranscriptionError
- 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 = "input string is not (entirely) a romanisation of Arabic", exception_type = :untranscribable) ⇒ NotATranscriptionError
constructor
A new instance of NotATranscriptionError.
Constructor Details
#initialize(msg = "input string is not (entirely) a romanisation of Arabic", exception_type = :untranscribable) ⇒ NotATranscriptionError
Returns a new instance of NotATranscriptionError.
13 14 15 16 |
# File 'lib/precise/error_classes.rb', line 13 def initialize(msg="input string is not (entirely) a romanisation of Arabic", exception_type=:untranscribable) @exception_type = exception_type super(msg) end |
Instance Attribute Details
#exception_type ⇒ Object (readonly)
Returns the value of attribute exception_type.
17 18 19 |
# File 'lib/precise/error_classes.rb', line 17 def exception_type @exception_type end |