Ejemplo n.º 1
0
 /// <summary> Initializes a new instance of the <see cref="ValueErrorEventArgs"/> class.
 /// </summary>
 /// <param name="exception">The exception.</param>
 public ValueErrorEventArgs(BusinessModelException exception)
 {
     if (exception == null)
     {
         throw new ArgumentNullException(nameof(exception));
     }
     this._exception = exception;
 }
Ejemplo n.º 2
0
 /// <summary> Initializes a new instance of the <see cref="ValueErrorEventArgs"/> class.
 /// </summary>
 /// <param name="error">The error.</param>
 /// <param name="businessObject">The business object.</param>
 public ValueErrorEventArgs(BusinessModelError error, IObjectBM businessObject)
 {
     this._exception = new BusinessModelException(error, businessObject);
 }