public InvalidAreaConfigTypeException([NotNull] WaTypeInfo areaWaType, Exception innerException) : base(innerException) { if (areaWaType == null) { throw new ArgumentNullException(nameof(areaWaType)); } this.areaWaType = areaWaType; }
public KernelBindException([NotNull] WaTypeInfo waTypeInfo) { if (waTypeInfo == null) { throw new ArgumentNullException(nameof(waTypeInfo)); } this.waTypeInfo = waTypeInfo; message = $"Type {waTypeInfo.Type.FullName} is defined as binding by {typeof(KernelBindAttribute)} but does not match any binding rules. " + "Binding rules are as follows: " + Environment.NewLine + $"{BindingHint.Singleton} and {BindingHint.Transient} must be a public non-abstract class." + Environment.NewLine + $"{BindingHint.FactoryProxy} should be a public interface."; }