InvalidRegistrationException
Represents an exception the container throws when it detects an invalid registration.
using System;
namespace Stashbox.Exceptions
{
public class InvalidRegistrationException : Exception
{
public Type Type { get; }
public InvalidRegistrationException(Type type, string message, Exception innerException = null)
: base("Invalid registration with type " + type.FullName + ". Details: " + message, innerException)
{
Type = type;
}
}
}