The StaDyn Programming Language
Source code documentation of StaDyn, a hybrid static and dynamic typing language.
MultipleBaseClassError.cs
Go to the documentation of this file.
1 // -------------------------------------------------------------------------- //
3 // Project rROTOR //
4 // -------------------------------------------------------------------------- //
5 // File: MultipleBaseClassError.cs //
6 // Author: Cristina Gonzalez Muņoz - cristi.gm@gmail.com //
7 // Description: //
8 // Represents the error occurred when a class has multiple base classes. //
9 // -------------------------------------------------------------------------- //
10 // Create date: 26-01-2007 //
11 // Modification date: 14-02-2007 //
13 
14 using System;
15 using System.Collections.Generic;
16 using System.Text;
17 
18 namespace ErrorManagement
19 {
24  {
25  #region Constructor
26 
34  public MultipleBaseClassError(string id, Location loc)
35  : base(loc)
36  {
37  StringBuilder aux = new StringBuilder();
38  aux.AppendFormat("{0} can not have multiple base classes.", id);
39  this.Description = aux.ToString();
40  }
41 
42  #endregion
43  }
44 }
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
MultipleBaseClassError(string id, Location loc)
Constructor of MultipleBaseClassError
System.Text.StringBuilder StringBuilder
Definition: CSharpParser.cs:4
Represents the error occurred when a class has multiple base classes.
Represents an adapter of existing features in every error.
Definition: ErrorAdapter.cs:23