The StaDyn Programming Language
Source code documentation of StaDyn, a hybrid static and dynamic typing language.
SymbolNotFoundError.cs
Go to the documentation of this file.
1 // -------------------------------------------------------------------------- //
3 // Project rROTOR //
4 // -------------------------------------------------------------------------- //
5 // File: SymbolNotFoundError.cs //
6 // Author: Cristina Gonzalez Muņoz - cristi.gm@gmail.com //
7 // Description: //
8 // Represents a error produced when the specified symbol does not exist. //
9 // -------------------------------------------------------------------------- //
10 // Create date: 02-04-2007 //
11 // Modification date: 02-04-2007 //
13 
14 using System;
15 using System.Collections.Generic;
16 using System.Text;
17 
18 namespace ErrorManagement
19 {
24  {
25 
26  #region Constructor
27 
35  public SymbolNotFoundError(string id, Location loc) : base(loc) {
36  StringBuilder aux = new StringBuilder();
37  aux.AppendFormat("The symbol name '{0}' could not be found.", id);
38  this.Description = aux.ToString();
39  }
40 
41  #endregion
42 
43  }
44 }
Represents a error produced when the specified symbol does not exist.
SymbolNotFoundError(string id, Location loc)
Constructor of SymbolNotFoundError
This class encapsulates a location in a specific file. Implements an Inmutable pattern. So it can be used in any context, that is his internal fields never change.
Definition: Location.cs:24
System.Text.StringBuilder StringBuilder
Definition: CSharpParser.cs:4
Represents an adapter of existing features in every error.
Definition: ErrorAdapter.cs:23