Add project files.

This commit is contained in:
Dmitry Kolchev
2019-08-29 23:24:07 +03:00
parent cf73662a92
commit b0dc0da558
80 changed files with 37714 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
using System;
using System.Diagnostics;
namespace Compat.Runtime.Serialization
{
internal class DiagnosticUtility
{
public class ExceptionUtility
{
internal static Exception ThrowHelperFatal(string message, Exception innerException)
{
return ThrowHelperError(new FatalException(message, innerException));
}
internal static Exception ThrowHelperError(Exception exception)
{
return ThrowHelper(exception, TraceEventType.Error);
}
internal static Exception ThrowHelper(Exception exception, TraceEventType eventType)
{
return exception;
}
}
}
}