Files
NetDataContractSerializer/Compat.Private.Serialization/Compat/Runtime/Serialization/DiagnosticUtility.cs
2019-08-29 23:24:07 +03:00

28 lines
740 B
C#

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;
}
}
}
}