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