Initial commit
This commit is contained in:
18
GerstITS.Examples.Api/Module.ExceptionHandling.cs
Normal file
18
GerstITS.Examples.Api/Module.ExceptionHandling.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using GerstITS.Examples.Api.ExceptionHandling;
|
||||
using GerstITS.Web.Api.ExceptionHandling.Extensions;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
|
||||
namespace GerstITS.Examples.Api
|
||||
{
|
||||
public sealed partial class Module
|
||||
{
|
||||
#region Methods
|
||||
|
||||
private static void RegisterExceptionHandling(IServiceCollection container)
|
||||
{
|
||||
container.RegisterExceptionTransformationsOf<ValidationExceptionTransformation>();
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user