using System; using System.Security; namespace AspClassic.Scripting; internal static class Error { internal static Exception MustHaveCodeOrTarget() { return new ArgumentException(Strings.MustHaveCodeOrTarget); } internal static Exception TypeParameterIsNotDelegate(object p0) { return new InvalidOperationException(Strings.TypeParameterIsNotDelegate(p0)); } internal static Exception InvalidCast(object p0, object p1) { return new InvalidOperationException(Strings.InvalidCast(p0, p1)); } internal static Exception UnknownMemberType(object p0) { return new InvalidOperationException(Strings.UnknownMemberType(p0)); } internal static Exception FirstArgumentMustBeCallSite() { return new InvalidOperationException(Strings.FirstArgumentMustBeCallSite); } internal static Exception NoInstanceForCall() { return new InvalidOperationException(Strings.NoInstanceForCall); } internal static Exception MissingTest() { return new InvalidOperationException(Strings.MissingTest); } internal static Exception MissingTarget() { return new InvalidOperationException(Strings.MissingTarget); } internal static Exception NonGenericWithGenericGroup(object p0) { return new TypeLoadException(Strings.NonGenericWithGenericGroup(p0)); } internal static Exception InvalidOperation(object p0) { return new ArgumentException(Strings.InvalidOperation(p0)); } internal static Exception FinallyAlreadyDefined() { return new InvalidOperationException(Strings.FinallyAlreadyDefined); } internal static Exception CannotHaveFaultAndFinally() { return new InvalidOperationException(Strings.CannotHaveFaultAndFinally); } internal static Exception FaultAlreadyDefined() { return new InvalidOperationException(Strings.FaultAlreadyDefined); } internal static Exception CantCreateDefaultTypeFor(object p0) { return new ArgumentException(Strings.CantCreateDefaultTypeFor(p0)); } internal static Exception UnhandledConvert(object p0) { return new ArgumentException(Strings.UnhandledConvert(p0)); } internal static Exception NoCallableMethods(object p0, object p1) { return new InvalidOperationException(Strings.NoCallableMethods(p0, p1)); } internal static Exception GlobalsMustBeUnique() { return new ArgumentException(Strings.GlobalsMustBeUnique); } internal static Exception GenNonSerializableBinder() { return new ArgumentException(Strings.GenNonSerializableBinder); } internal static Exception InvalidPath() { return new ArgumentException(Strings.InvalidPath); } internal static Exception DictionaryNotHashable() { return new ArgumentTypeException(Strings.DictionaryNotHashable); } internal static Exception LanguageRegistered() { return new InvalidOperationException(Strings.LanguageRegistered); } internal static Exception MethodOrOperatorNotImplemented() { return new NotImplementedException(Strings.MethodOrOperatorNotImplemented); } internal static Exception NoException() { return new InvalidOperationException(Strings.NoException); } internal static Exception ExtensionMustBePublic(object p0) { return new ArgumentException(Strings.ExtensionMustBePublic(p0)); } internal static Exception AlreadyInitialized() { return new InvalidOperationException(Strings.AlreadyInitialized); } internal static Exception MustReturnScopeExtension() { return new InvalidImplementationException(Strings.MustReturnScopeExtension); } internal static Exception InvalidParamNumForService() { return new ArgumentException(Strings.InvalidParamNumForService); } internal static Exception InvalidArgumentType(object p0, object p1) { return new ArgumentException(Strings.InvalidArgumentType(p0, p1)); } internal static Exception CannotChangeNonCachingValue() { return new ArgumentException(Strings.CannotChangeNonCachingValue); } internal static Exception FieldReadonly(object p0) { return new MissingMemberException(Strings.FieldReadonly(p0)); } internal static Exception PropertyReadonly(object p0) { return new MissingMemberException(Strings.PropertyReadonly(p0)); } internal static Exception UnexpectedEvent(object p0, object p1, object p2, object p3) { return new ArgumentException(Strings.UnexpectedEvent(p0, p1, p2, p3)); } internal static Exception ExpectedBoundEvent(object p0) { return new ArgumentTypeException(Strings.ExpectedBoundEvent(p0)); } internal static Exception UnexpectedType(object p0, object p1) { return new ArgumentTypeException(Strings.UnexpectedType(p0, p1)); } internal static Exception MemberWriteOnly(object p0) { return new MemberAccessException(Strings.MemberWriteOnly(p0)); } internal static Exception NoCodeToCompile() { return new InvalidOperationException(Strings.NoCodeToCompile); } internal static Exception InvalidStreamType(object p0) { return new ArgumentException(Strings.InvalidStreamType(p0)); } internal static Exception QueueEmpty() { return new InvalidOperationException(Strings.QueueEmpty); } internal static Exception EnumerationNotStarted() { return new InvalidOperationException(Strings.EnumerationNotStarted); } internal static Exception EnumerationFinished() { return new InvalidOperationException(Strings.EnumerationFinished); } internal static Exception CantAddCasing(object p0) { return new InvalidOperationException(Strings.CantAddCasing(p0)); } internal static Exception CantAddIdentifier(object p0) { return new InvalidOperationException(Strings.CantAddIdentifier(p0)); } internal static Exception InvalidOutputDir() { return new ArgumentException(Strings.InvalidOutputDir); } internal static Exception InvalidAsmNameOrExtension() { return new ArgumentException(Strings.InvalidAsmNameOrExtension); } internal static Exception CanotEmitConstant(object p0, object p1) { return new ArgumentException(Strings.CanotEmitConstant(p0, p1)); } internal static Exception NoImplicitCast(object p0, object p1) { return new ArgumentException(Strings.NoImplicitCast(p0, p1)); } internal static Exception NoExplicitCast(object p0, object p1) { return new ArgumentException(Strings.NoExplicitCast(p0, p1)); } internal static Exception NameNotDefined(object p0) { return new MissingMemberException(Strings.NameNotDefined(p0)); } internal static Exception NoDefaultValue() { return new ArgumentException(Strings.NoDefaultValue); } internal static Exception UnknownLanguageProviderType() { return new ArgumentException(Strings.UnknownLanguageProviderType); } internal static Exception CantReadProperty() { return new InvalidOperationException(Strings.CantReadProperty); } internal static Exception CantWriteProperty() { return new InvalidOperationException(Strings.CantWriteProperty); } internal static Exception IllegalNew_GenericParams(object p0) { return new ArgumentException(Strings.IllegalNew_GenericParams(p0)); } internal static Exception VerificationException(object p0, object p1, object p2) { return new VerificationException(Strings.VerificationException(p0, p1, p2)); } }