Exception: Lingo::SourceFileNotFoundError
- Inherits:
-
FileNotFoundError
- Object
- StandardError
- LingoError
- FileError
- FileNotFoundError
- Lingo::SourceFileNotFoundError
- Defined in:
- lib/lingo/error.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Attributes inherited from FileError
Instance Method Summary collapse
-
#initialize(name, id) ⇒ SourceFileNotFoundError
constructor
A new instance of SourceFileNotFoundError.
- #to_s ⇒ Object
Methods inherited from LingoError
Constructor Details
#initialize(name, id) ⇒ SourceFileNotFoundError
Returns a new instance of SourceFileNotFoundError.
174 175 176 177 |
# File 'lib/lingo/error.rb', line 174 def initialize(name, id) super(name) @id = id end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
172 173 174 |
# File 'lib/lingo/error.rb', line 172 def id @id end |
Instance Method Details
#to_s ⇒ Object
179 180 181 |
# File 'lib/lingo/error.rb', line 179 def to_s "No such source file `#{name}' for `#{id}'." end |