16 using System.Collections.Generic;
19 namespace ErrorManagement {
27 public TernaryError(
string secondArgumentType,
string thirdArgumentType,
Location loc) : base(loc) {
37 aux.AppendFormat(
"Types '{0}' and '{1}' do cannot convert one to the other.", secondArgumentType, thirdArgumentType );
38 this.Description = aux.ToString();
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.
System.Text.StringBuilder StringBuilder
Represents a error produced when the ternary expression can not be applied to specified expressions ...
Represents an adapter of existing features in every error.
TernaryError(string secondArgumentType, string thirdArgumentType, Location loc)
Constructor