The StaDyn Programming Language
Source code documentation of StaDyn, a hybrid static and dynamic typing language.
ExpectedInterfaceError.cs
Go to the documentation of this file.
1 // --------------------------------------------------------------------------
3 // Project rROTOR
4 // --------------------------------------------------------------------------
5 // File: ExpectedInterfaceError.cs
6 // Author: Francisco Ortin - francisco.ortin@gmail.com
7 // Description:
8 // Represents where an interface is expected and it does not occur.
9 // --------------------------------------------------------------------------
10 // Create date: 09-04-2007
11 // Modification date: 09-04-2007
13 
14 using System;
15 using System.Collections.Generic;
16 using System.Text;
17 
18 namespace ErrorManagement {
23  #region Constructor
24 
32  public ExpectedInterfaceError(string id, Location loc)
33  : base(loc) {
34  StringBuilder aux = new StringBuilder();
35  aux.AppendFormat("The identifier '{0}' is not an interface.", id);
36  this.Description = aux.ToString();
37  }
38 
39  #endregion
40  }
41 }
ExpectedInterfaceError(string id, Location loc)
Constructor of UnknownTypeError
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
Represents a error produced when the used type is not defined.
System.Text.StringBuilder StringBuilder
Definition: CSharpParser.cs:4
Represents an adapter of existing features in every error.
Definition: ErrorAdapter.cs:23