The StaDyn Programming Language
Source code documentation of StaDyn, a hybrid static and dynamic typing language.
UnknownMemberError.cs
Go to the documentation of this file.
1 // -------------------------------------------------------------------------- //
3 // Project rROTOR //
4 // -------------------------------------------------------------------------- //
5 // File: UnknownMemberError.cs //
6 // Author: Cristina Gonzalez Muņoz - cristi.gm@gmail.com //
7 // Description: //
8 // Represents a error produced when the attribute identifier is not defined. //
9 // -------------------------------------------------------------------------- //
10 // Create date: 21-02-2007 //
11 // Modification date: 21-02-2007 //
13 
14 using System;
15 using System.Collections.Generic;
16 using System.Text;
17 
18 namespace ErrorManagement {
23 
24  #region Constructor
25  public UnknownMemberError(string typeId, string memberId, Location loc) : base(loc) {
34  StringBuilder aux = new StringBuilder();
35  aux.AppendFormat("'{0}' does not contain a definition for '{1}'.", typeId, memberId);
36  this.Description = aux.ToString();
37  }
38 
46  public UnknownMemberError(string memberId, Location loc) : base(loc) {
47  StringBuilder aux = new StringBuilder();
48  aux.AppendFormat("'{0}': no suitable member found.", memberId);
49  this.Description = aux.ToString();
50  }
51 
59  public UnknownMemberError(Location loc) : base(loc) {
60  StringBuilder aux = new StringBuilder();
61  aux.AppendFormat("'No suitable member found.");
62  this.Description = aux.ToString();
63  }
64  #endregion
65 
66  }
67 }
UnknownMemberError(Location loc)
Constructor of UnknownMemberError
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
UnknownMemberError(string typeId, string memberId, Location loc)
Constructor of UnknownMemberError
UnknownMemberError(string memberId, Location loc)
Constructor of UnknownMemberError
Represents an adapter of existing features in every error.
Definition: ErrorAdapter.cs:23
Represents a error produced when the attribute identifier is not defined.