using System;
using System.Runtime.Serialization;
namespace Baolee.GeneralMethod
{
/// <summary>
/// PrivateException 的摘要说明。
/// </summary>
public class PrivateException : Exception
{
/// <summary>
/// 构造函数Initializes a new instance of the PrivateException class.
/// </summary>
/// <remarks>This constructor initializes the property of the new instance to a system-supplied message that describes the error, such as "A Custom Data error has occurred." </remarks>
public PrivateException()
{
//
// TODO: 在此处添加构造函数逻辑
//
}
/// <summary>
/// Initializes a new instance of the PrivateException class with the specified error message.
/// </summary>
/// <param name="message">The message to display to the client when the exception is thrown.</param>
public PrivateException(string message) : base(message)
{
}
/// <summary>
/// Initializes a new instance of the PrivateException class with serialized data.
/// </summary>
/// <param name="info">The object that holds the serialized object data.</param>
/// <param name="context">The contextual information about the source or destination.</param>
/// <remarks>
/// This constructor is called during deserialization to reconstitute the exception object transmitted over a stream.
/// </remarks>
protected PrivateException(SerializationInfo info, StreamingContext context) : base(info, context)
{
}
/// <summary>
/// Initializes a new instance of the PrivateException class with the specified error message and InnerException property.
/// </summary>
/// <param name="message">The message to display to the client when the exception is thrown.</param>
/// <param name="innerException">The InnerException, if any, that threw the current exception.</param>
public PrivateException(string message, Exception innerException) : base(message, innerException)
{
}
}
}