|
#region Copyright (c) 2010 Raul Iloc
/*
{***************************************************************************}
{ }
{ Copyright (c) 2010 RAUL ILOC (rauliloc@yahoo.com) }
{ ALL RIGHTS RESERVED }
{ }
{ THE WORK IS PROVIDED UNDER THE TERMS OF THIS CODE PROJECT OPEN LICENSE. }
{ THE WORK IS PROTECTED BY COPYRIGHT AND/OR OTHER APPLICABLE LAW. }
{ ANY USE OF THE WORK OTHER THAN AS AUTHORIZED UNDER THIS LICENSE }
{ OR COPYRIGHT LAW IS PROHIBITED. }
{ }
{ }
{ BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HEREIN, YOU ACCEPT AND }
{ AGREE TO BE BOUND BY THE TERMS OF THIS LICENSE. THE AUTHOR GRANTS YOU }
{ THE RIGHTS CONTAINED HEREIN IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH }
{ TERMS AND CONDITIONS. IF YOU DO NOT AGREE TO ACCEPT AND BE BOUND BY THE }
{ TERMS OF THIS LICENSE, YOU CANNOT MAKE ANY USE OF THE WORK. }
{ }
{***************************************************************************}
*/
#endregion Copyright (c) 2010 Raul Iloc
using System;
using System.Runtime.Serialization;
namespace Ra.GridView.Util
{
/// <summary>
/// Defines the basic class for all RaGridView exceptions.
/// </summary>
[SerializableAttribute]
public class RaGridViewException : ApplicationException
{
/// <summary>
/// Initializes a new instance of the RaGridViewException class.
/// </summary>
public RaGridViewException()
{
}
/// <summary>
/// Initializes a new instance of the RaGridViewException class with a specified error message.
/// </summary>
/// <param name="message">The message that describes the error.</param>
public RaGridViewException(string message)
: base(message)
{
}
/// <summary>
/// Initializes a new instance of the RaGridViewException class with a specified error message and a reference to the inner exception that is the cause of this exception.
/// </summary>
/// <param name="message">The error message that explains the reason for the exception.</param>
/// <param name="inner">The exception that is the cause of the current exception. If the innerException parameter is not a null reference (Nothing in Visual Basic), the current exception is raised in a catch block that handles the inner exception.</param>
/// <remarks>An exception that is thrown as a direct result of a previous exception should include a reference to the previous exception in the InnerException property. The InnerException property returns the same value that is passed into the constructor, or a null reference (Nothing in Visual Basic) if the InnerException property does not supply the inner exception value to the constructor.</remarks>
public RaGridViewException(string message, Exception inner)
: base(message, inner)
{
}
/// <summary>
/// Initializes a new instance of the RaGridViewException 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>
protected RaGridViewException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
I have about 20 years experiences in leading software projects and teams and about 25 years of working experience in software development (SW Developer, SW Lead, SW Architect, SW PM, SW Manager/Group Leader).