Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BusinessValidationException"/> class.
 /// </summary>
 /// <param name="errorCode">The error code.</param>
 /// <param name="dataElement">The data element.</param>
 ///
 public BusinessValidationException(BusinessErrors errorCode, string dataElement) : base(errorCode.GetDescription())
 {
     DataElement = dataElement;
     ErrorCode   = errorCode;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BusinessValidationException"/> class.
 /// </summary>
 /// <param name="message">The message.</param>
 /// <param name="innerException">The inner exception.</param>
 /// <param name="dataElement">The data element.</param>
 /// <param name="errorCode">The error code.</param>
 ///
 public BusinessValidationException(string message, Exception innerException, string dataElement, BusinessErrors errorCode) : base(errorCode.GetDescription(), innerException)
 {
     DataElement = dataElement;
     ErrorCode   = errorCode;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BusinessValidationException"/> class.
 /// </summary>
 /// <param name="exception">The exception.</param>
 /// <param name="businessErrors">The business errors.</param>
 ///
 public BusinessValidationException(Exception exception, BusinessErrors businessErrors) : base(businessErrors.GetDescription(), exception)
 {
     ErrorCode = businessErrors;
 }