validationexception.cs
来自「C# 版本的一个三层商业架构」· CS 代码 · 共 47 行
CS
47 行
using System;
/// <summary>
/// Exception class indicating that there was a validation
/// problem with a business object.
/// </summary>
[Serializable()]
public class ValidationException : ApplicationException
{
/// <summary>
/// Initializes a new instance of the
/// <see cref="T:CSLA.ValidationException" /> class.
/// </summary>
public ValidationException()
{
}
/// <summary>
/// Initializes a new instance of the
/// <see cref="T:CSLA.ValidationException" /> class
/// with a specified error message.
/// </summary>
public ValidationException(string message) : base(message)
{
}
/// <summary>
/// Initializes a new instance of the
/// <see cref="T:CSLA.ValidationException" /> class
/// with a specified error message and a reference to the
/// inner exception that is the cause of this exception.
/// </summary>
public ValidationException(string message, Exception innerException) : base(message, innerException)
{
}
/// <summary>
/// Initializes a new instance of the
/// <see cref="T:CSLA.ValidationException" /> class
/// with serialized data.
/// </summary>
protected ValidationException(System.Runtime.Serialization.SerializationInfo info,
System.Runtime.Serialization.StreamingContext context) : base(info, context)
{
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?