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.



172
173
174
175
# File 'lib/lingo/error.rb', line 172

def initialize(name, id)
  super(name)
  @id = id
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



170
171
172
# File 'lib/lingo/error.rb', line 170

def id
  @id
end

Instance Method Details

#to_sObject



177
178
179
# File 'lib/lingo/error.rb', line 177

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