Exemplo n.º 1
0
 /// <summary>
 /// Adds an exception with the corresponding type.
 /// </summary>
 /// <param name="exception">The exception to add.</param>
 /// <param name="exceptionType">Type of the exception added.</param>
 public void AddException(OTCException exception, OTCExceptionTypes exceptionType)
 {
     this.listExceptions.Add(new KeyValuePair <OTCException, OTCExceptionTypes>(exception, exceptionType));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="OTCErrorIfMissedAttribute"/> class.
 /// </summary>
 /// <param name="treatAs">The value indicating this situation is going to be treated as Error or Warning.</param>
 public OTCErrorIfMissedAttribute(OTCExceptionTypes treatAs)
 {
    this.TreatAs = treatAs;
    this.DefaultValue = null;
 }