If a fatal exception happened this message is logged. Often the App has to quit afterward.
View code on GitHub Namespace: DeltaEngine.CoreAssembly: DeltaEngine (in DeltaEngine.dll) Version: 1.1.1.0 (1.1.1)
public static void Error(
Exception exception
)
public static void Error(
Exception exception
)
Public Shared Sub Error (
exception As Exception
)
Public Shared Sub Error (
exception As Exception
)
public:
static void Error(
Exception^ exception
)
public:
static void Error(
Exception^ exception
)
static member Error :
exception : Exception -> unit
static member Error :
exception : Exception -> unit
Tests:
DeltaEngine.Tests.Core.LoggerTests1 unit tests call DeltaEngine.Core.Logger.Error(System.Exception)
[Test]
public void LogError()
{
using (var logger = new MockLogger())
{
Logger.Error(new ExternalException());
Assert.IsTrue(logger.LastMessage.Contains(new ExternalException().Message),
logger.LastMessage);
}
}
[Test]
public void LogError()
{
using (var logger = new MockLogger())
{
Logger.Error(new ExternalException());
Assert.IsTrue(logger.LastMessage.Contains(new ExternalException().Message),
logger.LastMessage);
}
}