20 lines
367 B
C#
20 lines
367 B
C#
|
|
using System;
|
||
|
|
|
||
|
|
namespace VContainer.Unity
|
||
|
|
{
|
||
|
|
sealed class EntryPointExceptionHandler
|
||
|
|
{
|
||
|
|
readonly Action<Exception> handler;
|
||
|
|
|
||
|
|
public EntryPointExceptionHandler(Action<Exception> handler)
|
||
|
|
{
|
||
|
|
this.handler = handler;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void Publish(Exception ex)
|
||
|
|
{
|
||
|
|
handler.Invoke(ex);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|