Exception: Kotoshu::InvalidDictionaryFormatError
- Defined in:
- lib/kotoshu/core/exceptions.rb
Overview
Error raised when a dictionary file has an invalid format.
Instance Attribute Summary collapse
-
#details ⇒ String?
readonly
Details about the format issue.
-
#path ⇒ String
readonly
The file path.
Instance Method Summary collapse
-
#initialize(path, details = nil) ⇒ InvalidDictionaryFormatError
constructor
Create a new invalid format error.
Constructor Details
#initialize(path, details = nil) ⇒ InvalidDictionaryFormatError
Create a new invalid format error.
37 38 39 40 41 |
# File 'lib/kotoshu/core/exceptions.rb', line 37 def initialize(path, details = nil) @path = path @details = details super("Invalid dictionary format#{": #{details}" if details}: #{path}") end |
Instance Attribute Details
#details ⇒ String? (readonly)
Returns Details about the format issue.
47 48 49 |
# File 'lib/kotoshu/core/exceptions.rb', line 47 def details @details end |
#path ⇒ String (readonly)
Returns The file path.
44 45 46 |
# File 'lib/kotoshu/core/exceptions.rb', line 44 def path @path end |