Exception: Lingo::SourceFileNotFoundError

Inherits:
FileNotFoundError show all
Defined in:
lib/lingo/error.rb

Instance Attribute Summary collapse

Attributes inherited from FileError

#name

Instance Method Summary collapse

Methods inherited from LingoError

#class_name, #error

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

#idObject (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_sObject



179
180
181
# File 'lib/lingo/error.rb', line 179

def to_s
  "No such source file `#{name}' for `#{id}'."
end