Exception: Precise::NotATranscriptionError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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_typeObject (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