Exception: Kotoshu::DictionaryNotFoundError
- Defined in:
- lib/kotoshu/core/exceptions.rb
Overview
Error raised when a dictionary file cannot be found.
Instance Attribute Summary collapse
-
#path ⇒ String
readonly
The path that was not found.
Instance Method Summary collapse
-
#initialize(path, message = nil) ⇒ DictionaryNotFoundError
constructor
Create a new dictionary not found error.
Constructor Details
#initialize(path, message = nil) ⇒ DictionaryNotFoundError
Create a new dictionary not found error.
19 20 21 22 |
# File 'lib/kotoshu/core/exceptions.rb', line 19 def initialize(path, = nil) @path = path super( || "Dictionary not found: #{path}") end |
Instance Attribute Details
#path ⇒ String (readonly)
Returns The path that was not found.
25 26 27 |
# File 'lib/kotoshu/core/exceptions.rb', line 25 def path @path end |