⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 validationexception.cs

📁 C# 版本的一个三层商业架构
💻 CS
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -