TFS_ANTIGUO/SIGPC/wcfSigdd/AyAEM/Exceptions/AyAException.cs

138 lines
3.4 KiB
C#
Raw Permalink Normal View History

// ===============================================================================
// AyA Corp. - 2006 EM
//
// AyAException.cs
//
// This file contains the implementations of the AyAException Class.
// ===============================================================================
// History
// Date Description
// April Defines a AyAException class
//
// ===============================================================================
// Copyright (C) 2005-2006 AyA Corp.
// All rights reserved.
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY
// OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT
// LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR
// FITNESS FOR A PARTICULAR PURPOSE.
// ==============================================================================
using System;
using System.Runtime.Serialization;
namespace AyAEM.ExceptionManagement.Exceptions
{
[Serializable]
public class AyAException : BaseApplicationException
{
#region Attributes
/// <summary>
/// Especifies each atribute to the User Class
/// </summary>
/// <param name=""></param>
/// <returns></returns>
/// <date></date>
/// <programmer></programmer>
#endregion
#region Objects
/// <summary>
/// Especifies the Objects to use in the page (Miscellaneous)
/// </summary>
/// <param name=""></param>
/// <returns></returns>
/// <date></date>
/// <programmer></programmer>
#endregion
#region Instance Objects
///// <summary>
///// Instance the business objects declared in Biz Objects Region
///// </summary>
///// <param name=""></param>
///// <returns></returns>
///// <date></date>
///// <programmer></programmer>
//private void InstanceObjects()
//{
// try
// {
// }
// catch (Exception ex)
// {
// throw ex;
// }
//}
#endregion
#region Constructors
/// <summary>
/// Especifies the constructors for User Class
/// </summary>
/// <param name=""></param>
/// <returns></returns>
/// <date></date>
/// <programmer></programmer>
// Default constructor
public AyAException() : base()
{
}
// Constructor with exception message
public AyAException(string message) : base(message)
{
}
// Constructor with message and inner exception
public AyAException(string message, Exception inner) : base(message,inner)
{
}
// Protected constructor to de-serialize data
protected AyAException(SerializationInfo info, StreamingContext context) : base(info, context)
{
}
#endregion
#region Properties
/// <summary>
/// Especifies the properties for each atribute in the User Class
/// </summary>
/// <param name=""></param>
/// <returns></returns>
/// <date></date>
/// <programmer></programmer>
#endregion
#region Custom Methods
/// <summary>
///
/// </summary>
/// <param name=""></param>
/// <returns></returns>
/// <date></date>
/// <programmer></programmer>
public static void Publish(Exception pExcException, string pStrExceptionCodes)
{
ExceptionManager.Publish(pExcException, null);
}
#endregion
}
}