Exception: Lingo::SourceFileNotFoundError

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

Instance Attribute Summary (collapse)

Attributes inherited from FileNotFoundError

#name

Instance Method Summary (collapse)

Constructor Details

- (SourceFileNotFoundError) initialize(name, id)

A new instance of SourceFileNotFoundError



153
154
155
156
# File 'lib/lingo/error.rb', line 153

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

Instance Attribute Details

- (Object) id (readonly)

Returns the value of attribute id



151
152
153
# File 'lib/lingo/error.rb', line 151

def id
  @id
end

Instance Method Details

- (Object) to_s



158
159
160
# File 'lib/lingo/error.rb', line 158

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