55 lines
1.3 KiB
C#
55 lines
1.3 KiB
C#
using System;
|
|
|
|
namespace Csla.Validation
|
|
{
|
|
|
|
/// <summary>
|
|
/// Exception class indicating that there was a validation
|
|
/// problem with a business object.
|
|
/// </summary>
|
|
[Serializable()]
|
|
public class ValidationException : Exception
|
|
{
|
|
|
|
/// <summary>
|
|
/// Creates an instance of the object.
|
|
/// </summary>
|
|
public ValidationException()
|
|
{
|
|
|
|
}
|
|
|
|
/// <summary>
|
|
/// Creates an instance of the object.
|
|
/// </summary>
|
|
/// <param name="message">Message describing the exception.</param>
|
|
public ValidationException(string message)
|
|
: base(message)
|
|
{
|
|
|
|
}
|
|
|
|
/// <summary>
|
|
/// Creates an instance of the object.
|
|
/// </summary>
|
|
/// <param name="message">Message describing the exception.</param>
|
|
/// <param name="innerException">Inner exception object.</param>
|
|
public ValidationException(string message, Exception innerException)
|
|
: base(message, innerException)
|
|
{
|
|
|
|
}
|
|
|
|
/// <summary>
|
|
/// Creates an instance of the object for serialization.
|
|
/// </summary>
|
|
/// <param name="context">Serialization context.</param>
|
|
/// <param name="info">Serialization info.</param>
|
|
protected ValidationException(System.Runtime.Serialization.SerializationInfo info,
|
|
System.Runtime.Serialization.StreamingContext context)
|
|
: base(info, context)
|
|
{
|
|
|
|
}
|
|
}
|
|
} |