11 using System.Collections.Generic;
16 namespace ErrorManagement {
25 if (String.IsNullOrEmpty(element))
28 this.body(operation, element);
37 private void body(String operation, String element) {
39 aux.AppendFormat(
"Internal Error [{0}]. Element '{1}' cannot use operation [2] interface.", this.location, element, operation);
40 this.Description = aux.ToString();
42 private void body(String operation) {
44 aux.AppendFormat(
"Internal Error [{0}].Se ha invocado a la operacion de interface [1] con un argumento nulo", this.location, operation);
45 this.Description = aux.ToString();
InternalOperationInterfaceError(String operation, Location location)
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
InternalOperationInterfaceError(String operation, String element, Location location)
Represents an adapter of existing features in every error.