LifetimeValidationFailedException
Represents the exception the container throws when the lifetime validation is failed.
using System;
using System.Runtime.CompilerServices;
using System.Runtime.Serialization;
namespace Stashbox.Exceptions
{
[Serializable]
[System.Runtime.CompilerServices.NullableContext(2)]
[System.Runtime.CompilerServices.Nullable(0)]
public class LifetimeValidationFailedException : Exception
{
public Type Type { get; }
[System.Runtime.CompilerServices.NullableContext(1)]
public LifetimeValidationFailedException([System.Runtime.CompilerServices.Nullable(2)] Type type, string message)
: base(message)
{
Type = type;
}
[System.Runtime.CompilerServices.NullableContext(1)]
protected LifetimeValidationFailedException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}
}
}