using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace Sleis.Models.ErrorHandling
{
public class CannotDeleteException : Exception
{
private const string baseMessage = "This record cannot be deleted because it has been used on an emissions report.";
public CannotDeleteException() : base(baseMessage)
{
}
///
/// Accepts a message. If message is empty, will default to base message "This record cannot be deleted because it has been used on an emissions report."
///
///
public CannotDeleteException(string message)
:base(!String.IsNullOrEmpty(message) ? message : baseMessage)
{
}
public CannotDeleteException(string message, CannotDeleteException exception)
: base(!String.IsNullOrEmpty(message) ? message : baseMessage, exception)
{
}
}
}