/// <summary> Initializes a new instance of the <see cref="ValidationException"/> class. /// </summary> /// <param name="errorValue">The error value.</param> /// <param name="innerException">The inner exception.</param> protected ValidationException(BusinessModelError errorValue, Exception innerException) : base(errorValue, null, innerException) { }
/// <summary> Initializes a new instance of the <see cref="ValidationException"/> class. /// </summary> /// <param name="errorValue">The error value.</param> /// <param name="businessObject">The business object.</param> /// <param name="innerException">The inner exception.</param> protected ValidationException(BusinessModelError errorValue, IObjectBM businessObject, Exception innerException) : base(errorValue, businessObject, innerException) { }
/// <summary> Initializes a new instance of the <see cref="ValidationException"/> class. /// </summary> /// <param name="errorValue">The error value.</param> /// <param name="businessObject">The business object.</param> protected ValidationException(BusinessModelError errorValue, IObjectBM businessObject) : base(errorValue, businessObject, null) { }
/// <summary> Initializes a new instance of the <see cref="ValidationException"/> class. /// </summary> /// <param name="errorValue">The error value.</param> protected ValidationException(BusinessModelError errorValue) : base(errorValue, null, null) { }
/// <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); }
/// <summary> /// Initializes a new instance of the <see cref="BusinessModelException"/> class. /// </summary> /// <param name="errorNumber">The error number.</param> /// <param name="businessObject">The business object.</param> /// <param name="innerException">The inner exception.</param> public BusinessModelException(BusinessModelError errorNumber, IObjectBM businessObject, Exception innerException) : base(CreateMessage(errorNumber), innerException) { _errorNumber = errorNumber; _businessObject = businessObject; }
/// <summary> /// Initializes a new instance of the <see cref="BusinessModelException"/> class. /// </summary> /// <param name="errorNumber">The error number.</param> /// <param name="businessObject">The business object.</param> public BusinessModelException(BusinessModelError errorNumber, IObjectBM businessObject) : this(errorNumber, businessObject, null) { }