Newer
Older
hypermedia-blazorcrud / Blazorcrud.Server / Helpers / AppException.cs
@Derek Comartin Derek Comartin on 12 Jul 506 bytes Init
namespace Blazorcrud.Server.Helpers;
using System.Globalization;

// custom exception class for throwing application specific exceptions (e.g. for validation) 
// that can be caught and handled within the application
public class AppException : Exception
{
    public AppException() : base() {}

    public AppException(string message) : base(message) { }

    public AppException(string message, params object[] args) 
        : base(String.Format(CultureInfo.CurrentCulture, message, args))
    {
    }
}