using System;
namespace Csla.Validation
{
  /// 
  /// Exception class indicating that there was a validation
  /// problem with a business object.
  /// 
  [Serializable()]
  public class ValidationException : Exception
  {
    /// 
    /// Creates an instance of the object.
    /// 
    public ValidationException()
    {
    }
    /// 
    /// Creates an instance of the object.
    /// 
    /// Message describing the exception.
    public ValidationException(string message)
      : base(message)
    {
    }
    /// 
    /// Creates an instance of the object.
    /// 
    /// Message describing the exception.
    /// Inner exception object.
   public ValidationException(string message, Exception innerException)
      : base(message, innerException)
    {
    }
    /// 
    /// Creates an instance of the object for serialization.
    /// 
    /// Serialization context.
    /// Serialization info.
    protected ValidationException(System.Runtime.Serialization.SerializationInfo info,
        System.Runtime.Serialization.StreamingContext context)
      : base(info, context)
    {
    }
  }
}