sledgemapper/Sledgemapper.Api/Helpers/AppException.cs
Michele Scandura 7e3e645fc9
All checks were successful
continuous-integration/drone/push Build is passing
fixes and cleanup
2021-09-21 11:09:26 +01:00

19 lines
No EOL
566 B
C#

using System;
using System.Globalization;
namespace Sledgemapper.Api.Helpers
{
// 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))
{
}
}
}