ae1884c1bc
Former-commit-id: 18432a6ff57f597da5968d1a3011ed3c703abdad
25 lines
726 B
C#
25 lines
726 B
C#
using System;
|
|
using System.Reflection;
|
|
using System.Runtime.ExceptionServices;
|
|
|
|
namespace Internal.Runtime.Augments {
|
|
partial class RuntimeAugments {
|
|
private static ReflectionExecutionDomainCallbacks s_reflectionExecutionDomainCallbacks = new ReflectionExecutionDomainCallbacks ();
|
|
|
|
public static void ReportUnhandledException (Exception exception)
|
|
{
|
|
var edi = ExceptionDispatchInfo.Capture (exception);
|
|
edi.Throw ();
|
|
}
|
|
|
|
internal static ReflectionExecutionDomainCallbacks Callbacks => s_reflectionExecutionDomainCallbacks;
|
|
}
|
|
|
|
partial class ReflectionExecutionDomainCallbacks {
|
|
internal Exception CreateMissingMetadataException (Type attributeType)
|
|
{
|
|
return new MissingMetadataException ();
|
|
}
|
|
}
|
|
}
|