LifetimeValidationFailedException
Represents the exception the container throws when the lifetime validation is failed.
using System;
namespace Stashbox.Exceptions
{
public class LifetimeValidationFailedException : ExceptionBaseException
{
public LifetimeValidationFailedException(Type type, string message, Exception innerException = null)
: base(type, message + Environment.NewLine + "If you want to disable this error then use the following container configuration: 'new StashboxContainer(c => c.DisableLifetimeValidation())'.", innerException)
{
}
}
}