Add project files.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user