1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050
|
/* ****************************************************************************
*
* Copyright (c) Microsoft Corporation.
*
* This source code is subject to terms and conditions of the Microsoft Public License. A
* copy of the license can be found in the License.html file at the root of this distribution. If
* you cannot locate the Microsoft Public License, please send an email to
* dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
* by the terms of the Microsoft Public License.
*
* You must not remove this notice, or any other, from this software.
*
*
* ***************************************************************************/
using System;
namespace Microsoft.Scripting {
internal static partial class Strings {
private static string FormatString(string format, params object[] args) {
return string.Format(System.Globalization.CultureInfo.CurrentCulture, format, args);
}
}
#region Generated Microsoft.Scripting Exception Factory
// *** BEGIN GENERATED CODE ***
// generated by function: gen_expr_factory_scripting from: generate_exception_factory.py
/// <summary>
/// Strongly-typed and parameterized string factory.
/// </summary>
internal static partial class Strings {
/// <summary>
/// A string like "Cannot access member {1} declared on type {0} because the type contains generic parameters."
/// </summary>
internal static string InvalidOperation_ContainsGenericParameters(object p0, object p1) {
return FormatString("Cannot access member {1} declared on type {0} because the type contains generic parameters.", p0, p1);
}
/// <summary>
/// A string like "Type '{0}' is missing or cannot be loaded."
/// </summary>
internal static string MissingType(object p0) {
return FormatString("Type '{0}' is missing or cannot be loaded.", p0);
}
/// <summary>
/// A string like "static property "{0}" of "{1}" can only be read through a type, not an instance"
/// </summary>
internal static string StaticAccessFromInstanceError(object p0, object p1) {
return FormatString("static property \"{0}\" of \"{1}\" can only be read through a type, not an instance", p0, p1);
}
/// <summary>
/// A string like "static property "{0}" of "{1}" can only be assigned to through a type, not an instance"
/// </summary>
internal static string StaticAssignmentFromInstanceError(object p0, object p1) {
return FormatString("static property \"{0}\" of \"{1}\" can only be assigned to through a type, not an instance", p0, p1);
}
/// <summary>
/// A string like "Method precondition violated"
/// </summary>
internal static string MethodPreconditionViolated {
get {
return "Method precondition violated";
}
}
/// <summary>
/// A string like "Invalid argument value"
/// </summary>
internal static string InvalidArgumentValue {
get {
return "Invalid argument value";
}
}
/// <summary>
/// A string like "Non-empty string required"
/// </summary>
internal static string NonEmptyStringRequired {
get {
return "Non-empty string required";
}
}
/// <summary>
/// A string like "Non-empty collection required"
/// </summary>
internal static string NonEmptyCollectionRequired {
get {
return "Non-empty collection required";
}
}
/// <summary>
/// A string like "must by an Exception instance"
/// </summary>
internal static string MustBeExceptionInstance {
get {
return "must by an Exception instance";
}
}
/// <summary>
/// A string like "Type of test must be bool"
/// </summary>
internal static string TypeOfTestMustBeBool {
get {
return "Type of test must be bool";
}
}
/// <summary>
/// A string like "Type of the expression must be bool"
/// </summary>
internal static string TypeOfExpressionMustBeBool {
get {
return "Type of the expression must be bool";
}
}
/// <summary>
/// A string like "Empty string is not a valid path."
/// </summary>
internal static string EmptyStringIsInvalidPath {
get {
return "Empty string is not a valid path.";
}
}
/// <summary>
/// A string like "Invalid delegate type (Invoke method not found)."
/// </summary>
internal static string InvalidDelegate {
get {
return "Invalid delegate type (Invoke method not found).";
}
}
/// <summary>
/// A string like "expected only static property"
/// </summary>
internal static string ExpectedStaticProperty {
get {
return "expected only static property";
}
}
/// <summary>
/// A string like "Property doesn't exist on the provided type"
/// </summary>
internal static string PropertyDoesNotExist {
get {
return "Property doesn't exist on the provided type";
}
}
/// <summary>
/// A string like "Field doesn't exist on provided type"
/// </summary>
internal static string FieldDoesNotExist {
get {
return "Field doesn't exist on provided type";
}
}
/// <summary>
/// A string like "Type doesn't have constructor with a given signature"
/// </summary>
internal static string TypeDoesNotHaveConstructorForTheSignature {
get {
return "Type doesn't have constructor with a given signature";
}
}
/// <summary>
/// A string like "Type doesn't have a method with a given name."
/// </summary>
internal static string TypeDoesNotHaveMethodForName {
get {
return "Type doesn't have a method with a given name.";
}
}
/// <summary>
/// A string like "Type doesn't have a method with a given name and signature."
/// </summary>
internal static string TypeDoesNotHaveMethodForNameSignature {
get {
return "Type doesn't have a method with a given name and signature.";
}
}
/// <summary>
/// A string like "Count must be non-negative."
/// </summary>
internal static string CountCannotBeNegative {
get {
return "Count must be non-negative.";
}
}
/// <summary>
/// A string like "arrayType must be an array type"
/// </summary>
internal static string ArrayTypeMustBeArray {
get {
return "arrayType must be an array type";
}
}
/// <summary>
/// A string like "Either code or target must be specified."
/// </summary>
internal static string MustHaveCodeOrTarget {
get {
return "Either code or target must be specified.";
}
}
/// <summary>
/// A string like "Type parameter is {0}. Expected a delegate."
/// </summary>
internal static string TypeParameterIsNotDelegate(object p0) {
return FormatString("Type parameter is {0}. Expected a delegate.", p0);
}
/// <summary>
/// A string like "Cannot cast from type '{0}' to type '{1}"
/// </summary>
internal static string InvalidCast(object p0, object p1) {
return FormatString("Cannot cast from type '{0}' to type '{1}", p0, p1);
}
/// <summary>
/// A string like "unknown member type: '{0}'. "
/// </summary>
internal static string UnknownMemberType(object p0) {
return FormatString("unknown member type: '{0}'. ", p0);
}
/// <summary>
/// A string like "RuleBuilder can only be used with delegates whose first argument is CallSite."
/// </summary>
internal static string FirstArgumentMustBeCallSite {
get {
return "RuleBuilder can only be used with delegates whose first argument is CallSite.";
}
}
/// <summary>
/// A string like "no instance for call."
/// </summary>
internal static string NoInstanceForCall {
get {
return "no instance for call.";
}
}
/// <summary>
/// A string like "Missing Test."
/// </summary>
internal static string MissingTest {
get {
return "Missing Test.";
}
}
/// <summary>
/// A string like "Missing Target."
/// </summary>
internal static string MissingTarget {
get {
return "Missing Target.";
}
}
/// <summary>
/// A string like "The operation requires a non-generic type for {0}, but this represents generic types only"
/// </summary>
internal static string NonGenericWithGenericGroup(object p0) {
return FormatString("The operation requires a non-generic type for {0}, but this represents generic types only", p0);
}
/// <summary>
/// A string like "Invalid operation: '{0}'"
/// </summary>
internal static string InvalidOperation(object p0) {
return FormatString("Invalid operation: '{0}'", p0);
}
/// <summary>
/// A string like "Finally already defined."
/// </summary>
internal static string FinallyAlreadyDefined {
get {
return "Finally already defined.";
}
}
/// <summary>
/// A string like "Can not have fault and finally."
/// </summary>
internal static string CannotHaveFaultAndFinally {
get {
return "Can not have fault and finally.";
}
}
/// <summary>
/// A string like "Fault already defined."
/// </summary>
internal static string FaultAlreadyDefined {
get {
return "Fault already defined.";
}
}
/// <summary>
/// A string like "Cannot create default value for type {0}."
/// </summary>
internal static string CantCreateDefaultTypeFor(object p0) {
return FormatString("Cannot create default value for type {0}.", p0);
}
/// <summary>
/// A string like "Unhandled convert: {0}"
/// </summary>
internal static string UnhandledConvert(object p0) {
return FormatString("Unhandled convert: {0}", p0);
}
/// <summary>
/// A string like "{0}.{1} has no publiclly visible method."
/// </summary>
internal static string NoCallableMethods(object p0, object p1) {
return FormatString("{0}.{1} has no publiclly visible method.", p0, p1);
}
/// <summary>
/// A string like "Global/top-level local variable names must be unique."
/// </summary>
internal static string GlobalsMustBeUnique {
get {
return "Global/top-level local variable names must be unique.";
}
}
/// <summary>
/// A string like "Generating code from non-serializable CallSiteBinder."
/// </summary>
internal static string GenNonSerializableBinder {
get {
return "Generating code from non-serializable CallSiteBinder.";
}
}
/// <summary>
/// A string like "pecified path is invalid."
/// </summary>
internal static string InvalidPath {
get {
return "pecified path is invalid.";
}
}
/// <summary>
/// A string like "Dictionaries are not hashable."
/// </summary>
internal static string DictionaryNotHashable {
get {
return "Dictionaries are not hashable.";
}
}
/// <summary>
/// A string like "language already registered."
/// </summary>
internal static string LanguageRegistered {
get {
return "language already registered.";
}
}
/// <summary>
/// A string like "The method or operation is not implemented."
/// </summary>
internal static string MethodOrOperatorNotImplemented {
get {
return "The method or operation is not implemented.";
}
}
/// <summary>
/// A string like "No exception."
/// </summary>
internal static string NoException {
get {
return "No exception.";
}
}
/// <summary>
/// A string like "Extension type {0} must be public."
/// </summary>
internal static string ExtensionMustBePublic(object p0) {
return FormatString("Extension type {0} must be public.", p0);
}
/// <summary>
/// A string like "Already initialized."
/// </summary>
internal static string AlreadyInitialized {
get {
return "Already initialized.";
}
}
/// <summary>
/// A string like "CreateScopeExtension must return a scope extension."
/// </summary>
internal static string MustReturnScopeExtension {
get {
return "CreateScopeExtension must return a scope extension.";
}
}
/// <summary>
/// A string like "Invalid number of parameters for the service."
/// </summary>
internal static string InvalidParamNumForService {
get {
return "Invalid number of parameters for the service.";
}
}
/// <summary>
/// A string like "Invalid type of argument {0}; expecting {1}."
/// </summary>
internal static string InvalidArgumentType(object p0, object p1) {
return FormatString("Invalid type of argument {0}; expecting {1}.", p0, p1);
}
/// <summary>
/// A string like "Cannot change non-caching value."
/// </summary>
internal static string CannotChangeNonCachingValue {
get {
return "Cannot change non-caching value.";
}
}
/// <summary>
/// A string like "Field {0} is read-only"
/// </summary>
internal static string FieldReadonly(object p0) {
return FormatString("Field {0} is read-only", p0);
}
/// <summary>
/// A string like "Property {0} is read-only"
/// </summary>
internal static string PropertyReadonly(object p0) {
return FormatString("Property {0} is read-only", p0);
}
/// <summary>
/// A string like "Expected event from {0}.{1}, got event from {2}.{3}."
/// </summary>
internal static string UnexpectedEvent(object p0, object p1, object p2, object p3) {
return FormatString("Expected event from {0}.{1}, got event from {2}.{3}.", p0, p1, p2, p3);
}
/// <summary>
/// A string like "expected bound event, got {0}."
/// </summary>
internal static string ExpectedBoundEvent(object p0) {
return FormatString("expected bound event, got {0}.", p0);
}
/// <summary>
/// A string like "Expected type {0}, got {1}."
/// </summary>
internal static string UnexpectedType(object p0, object p1) {
return FormatString("Expected type {0}, got {1}.", p0, p1);
}
/// <summary>
/// A string like "can only write to member {0}."
/// </summary>
internal static string MemberWriteOnly(object p0) {
return FormatString("can only write to member {0}.", p0);
}
/// <summary>
/// A string like "No code to compile."
/// </summary>
internal static string NoCodeToCompile {
get {
return "No code to compile.";
}
}
/// <summary>
/// A string like "Invalid stream type: {0}."
/// </summary>
internal static string InvalidStreamType(object p0) {
return FormatString("Invalid stream type: {0}.", p0);
}
/// <summary>
/// A string like "Queue empty."
/// </summary>
internal static string QueueEmpty {
get {
return "Queue empty.";
}
}
/// <summary>
/// A string like "Enumeration has not started. Call MoveNext."
/// </summary>
internal static string EnumerationNotStarted {
get {
return "Enumeration has not started. Call MoveNext.";
}
}
/// <summary>
/// A string like "Enumeration already finished."
/// </summary>
internal static string EnumerationFinished {
get {
return "Enumeration already finished.";
}
}
/// <summary>
/// A string like "can't add another casing for identifier {0}"
/// </summary>
internal static string CantAddCasing(object p0) {
return FormatString("can't add another casing for identifier {0}", p0);
}
/// <summary>
/// A string like "can't add new identifier {0}"
/// </summary>
internal static string CantAddIdentifier(object p0) {
return FormatString("can't add new identifier {0}", p0);
}
/// <summary>
/// A string like "Type '{0}' doesn't provide a suitable public constructor or its implementation is faulty: {1}"
/// </summary>
internal static string InvalidCtorImplementation(object p0, object p1) {
return FormatString("Type '{0}' doesn't provide a suitable public constructor or its implementation is faulty: {1}", p0, p1);
}
/// <summary>
/// A string like "Invalid output directory."
/// </summary>
internal static string InvalidOutputDir {
get {
return "Invalid output directory.";
}
}
/// <summary>
/// A string like "Invalid assembly name or file extension."
/// </summary>
internal static string InvalidAsmNameOrExtension {
get {
return "Invalid assembly name or file extension.";
}
}
/// <summary>
/// A string like "Cannot emit constant {0} ({1})"
/// </summary>
internal static string CanotEmitConstant(object p0, object p1) {
return FormatString("Cannot emit constant {0} ({1})", p0, p1);
}
/// <summary>
/// A string like "No implicit cast from {0} to {1}"
/// </summary>
internal static string NoImplicitCast(object p0, object p1) {
return FormatString("No implicit cast from {0} to {1}", p0, p1);
}
/// <summary>
/// A string like "No explicit cast from {0} to {1}"
/// </summary>
internal static string NoExplicitCast(object p0, object p1) {
return FormatString("No explicit cast from {0} to {1}", p0, p1);
}
/// <summary>
/// A string like "name '{0}' not defined"
/// </summary>
internal static string NameNotDefined(object p0) {
return FormatString("name '{0}' not defined", p0);
}
/// <summary>
/// A string like "No default value for a given type."
/// </summary>
internal static string NoDefaultValue {
get {
return "No default value for a given type.";
}
}
/// <summary>
/// A string like "Specified language provider type is not registered."
/// </summary>
internal static string UnknownLanguageProviderType {
get {
return "Specified language provider type is not registered.";
}
}
/// <summary>
/// A string like "can't read from property"
/// </summary>
internal static string CantReadProperty {
get {
return "can't read from property";
}
}
/// <summary>
/// A string like "can't write to property"
/// </summary>
internal static string CantWriteProperty {
get {
return "can't write to property";
}
}
/// <summary>
/// A string like "Cannot create instance of {0} because it contains generic parameters"
/// </summary>
internal static string IllegalNew_GenericParams(object p0) {
return FormatString("Cannot create instance of {0} because it contains generic parameters", p0);
}
/// <summary>
/// A string like "Non-verifiable assembly generated: {0}:\nAssembly preserved as {1}\nError text:\n{2}\n"
/// </summary>
internal static string VerificationException(object p0, object p1, object p2) {
return FormatString("Non-verifiable assembly generated: {0}:\nAssembly preserved as {1}\nError text:\n{2}\n", p0, p1, p2);
}
}
/// <summary>
/// Strongly-typed and parameterized exception factory.
/// </summary>
internal static partial class Error {
/// <summary>
/// ArgumentException with message like "Either code or target must be specified."
/// </summary>
internal static Exception MustHaveCodeOrTarget() {
return new ArgumentException(Strings.MustHaveCodeOrTarget);
}
/// <summary>
/// InvalidOperationException with message like "Type parameter is {0}. Expected a delegate."
/// </summary>
internal static Exception TypeParameterIsNotDelegate(object p0) {
return new InvalidOperationException(Strings.TypeParameterIsNotDelegate(p0));
}
/// <summary>
/// InvalidOperationException with message like "Cannot cast from type '{0}' to type '{1}"
/// </summary>
internal static Exception InvalidCast(object p0, object p1) {
return new InvalidOperationException(Strings.InvalidCast(p0, p1));
}
/// <summary>
/// InvalidOperationException with message like "unknown member type: '{0}'. "
/// </summary>
internal static Exception UnknownMemberType(object p0) {
return new InvalidOperationException(Strings.UnknownMemberType(p0));
}
/// <summary>
/// InvalidOperationException with message like "RuleBuilder can only be used with delegates whose first argument is CallSite."
/// </summary>
internal static Exception FirstArgumentMustBeCallSite() {
return new InvalidOperationException(Strings.FirstArgumentMustBeCallSite);
}
/// <summary>
/// InvalidOperationException with message like "no instance for call."
/// </summary>
internal static Exception NoInstanceForCall() {
return new InvalidOperationException(Strings.NoInstanceForCall);
}
/// <summary>
/// InvalidOperationException with message like "Missing Test."
/// </summary>
internal static Exception MissingTest() {
return new InvalidOperationException(Strings.MissingTest);
}
/// <summary>
/// InvalidOperationException with message like "Missing Target."
/// </summary>
internal static Exception MissingTarget() {
return new InvalidOperationException(Strings.MissingTarget);
}
/// <summary>
/// TypeLoadException with message like "The operation requires a non-generic type for {0}, but this represents generic types only"
/// </summary>
internal static Exception NonGenericWithGenericGroup(object p0) {
return new TypeLoadException(Strings.NonGenericWithGenericGroup(p0));
}
/// <summary>
/// ArgumentException with message like "Invalid operation: '{0}'"
/// </summary>
internal static Exception InvalidOperation(object p0) {
return new ArgumentException(Strings.InvalidOperation(p0));
}
/// <summary>
/// InvalidOperationException with message like "Finally already defined."
/// </summary>
internal static Exception FinallyAlreadyDefined() {
return new InvalidOperationException(Strings.FinallyAlreadyDefined);
}
/// <summary>
/// InvalidOperationException with message like "Can not have fault and finally."
/// </summary>
internal static Exception CannotHaveFaultAndFinally() {
return new InvalidOperationException(Strings.CannotHaveFaultAndFinally);
}
/// <summary>
/// InvalidOperationException with message like "Fault already defined."
/// </summary>
internal static Exception FaultAlreadyDefined() {
return new InvalidOperationException(Strings.FaultAlreadyDefined);
}
/// <summary>
/// ArgumentException with message like "Cannot create default value for type {0}."
/// </summary>
internal static Exception CantCreateDefaultTypeFor(object p0) {
return new ArgumentException(Strings.CantCreateDefaultTypeFor(p0));
}
/// <summary>
/// ArgumentException with message like "Unhandled convert: {0}"
/// </summary>
internal static Exception UnhandledConvert(object p0) {
return new ArgumentException(Strings.UnhandledConvert(p0));
}
/// <summary>
/// InvalidOperationException with message like "{0}.{1} has no publiclly visible method."
/// </summary>
internal static Exception NoCallableMethods(object p0, object p1) {
return new InvalidOperationException(Strings.NoCallableMethods(p0, p1));
}
/// <summary>
/// ArgumentException with message like "Global/top-level local variable names must be unique."
/// </summary>
internal static Exception GlobalsMustBeUnique() {
return new ArgumentException(Strings.GlobalsMustBeUnique);
}
/// <summary>
/// ArgumentException with message like "Generating code from non-serializable CallSiteBinder."
/// </summary>
internal static Exception GenNonSerializableBinder() {
return new ArgumentException(Strings.GenNonSerializableBinder);
}
/// <summary>
/// ArgumentException with message like "pecified path is invalid."
/// </summary>
internal static Exception InvalidPath() {
return new ArgumentException(Strings.InvalidPath);
}
/// <summary>
/// ArgumentTypeException with message like "Dictionaries are not hashable."
/// </summary>
internal static Exception DictionaryNotHashable() {
return new ArgumentTypeException(Strings.DictionaryNotHashable);
}
/// <summary>
/// InvalidOperationException with message like "language already registered."
/// </summary>
internal static Exception LanguageRegistered() {
return new InvalidOperationException(Strings.LanguageRegistered);
}
/// <summary>
/// NotImplementedException with message like "The method or operation is not implemented."
/// </summary>
internal static Exception MethodOrOperatorNotImplemented() {
return new NotImplementedException(Strings.MethodOrOperatorNotImplemented);
}
/// <summary>
/// InvalidOperationException with message like "No exception."
/// </summary>
internal static Exception NoException() {
return new InvalidOperationException(Strings.NoException);
}
/// <summary>
/// ArgumentException with message like "Extension type {0} must be public."
/// </summary>
internal static Exception ExtensionMustBePublic(object p0) {
return new ArgumentException(Strings.ExtensionMustBePublic(p0));
}
/// <summary>
/// InvalidOperationException with message like "Already initialized."
/// </summary>
internal static Exception AlreadyInitialized() {
return new InvalidOperationException(Strings.AlreadyInitialized);
}
/// <summary>
/// InvalidImplementationException with message like "CreateScopeExtension must return a scope extension."
/// </summary>
internal static Exception MustReturnScopeExtension() {
return new InvalidImplementationException(Strings.MustReturnScopeExtension);
}
/// <summary>
/// ArgumentException with message like "Invalid number of parameters for the service."
/// </summary>
internal static Exception InvalidParamNumForService() {
return new ArgumentException(Strings.InvalidParamNumForService);
}
/// <summary>
/// ArgumentException with message like "Invalid type of argument {0}; expecting {1}."
/// </summary>
internal static Exception InvalidArgumentType(object p0, object p1) {
return new ArgumentException(Strings.InvalidArgumentType(p0, p1));
}
/// <summary>
/// ArgumentException with message like "Cannot change non-caching value."
/// </summary>
internal static Exception CannotChangeNonCachingValue() {
return new ArgumentException(Strings.CannotChangeNonCachingValue);
}
/// <summary>
/// MissingMemberException with message like "Field {0} is read-only"
/// </summary>
internal static Exception FieldReadonly(object p0) {
return new MissingMemberException(Strings.FieldReadonly(p0));
}
/// <summary>
/// MissingMemberException with message like "Property {0} is read-only"
/// </summary>
internal static Exception PropertyReadonly(object p0) {
return new MissingMemberException(Strings.PropertyReadonly(p0));
}
/// <summary>
/// ArgumentException with message like "Expected event from {0}.{1}, got event from {2}.{3}."
/// </summary>
internal static Exception UnexpectedEvent(object p0, object p1, object p2, object p3) {
return new ArgumentException(Strings.UnexpectedEvent(p0, p1, p2, p3));
}
/// <summary>
/// ArgumentTypeException with message like "expected bound event, got {0}."
/// </summary>
internal static Exception ExpectedBoundEvent(object p0) {
return new ArgumentTypeException(Strings.ExpectedBoundEvent(p0));
}
/// <summary>
/// ArgumentTypeException with message like "Expected type {0}, got {1}."
/// </summary>
internal static Exception UnexpectedType(object p0, object p1) {
return new ArgumentTypeException(Strings.UnexpectedType(p0, p1));
}
/// <summary>
/// MemberAccessException with message like "can only write to member {0}."
/// </summary>
internal static Exception MemberWriteOnly(object p0) {
return new MemberAccessException(Strings.MemberWriteOnly(p0));
}
/// <summary>
/// InvalidOperationException with message like "No code to compile."
/// </summary>
internal static Exception NoCodeToCompile() {
return new InvalidOperationException(Strings.NoCodeToCompile);
}
/// <summary>
/// ArgumentException with message like "Invalid stream type: {0}."
/// </summary>
internal static Exception InvalidStreamType(object p0) {
return new ArgumentException(Strings.InvalidStreamType(p0));
}
/// <summary>
/// InvalidOperationException with message like "Queue empty."
/// </summary>
internal static Exception QueueEmpty() {
return new InvalidOperationException(Strings.QueueEmpty);
}
/// <summary>
/// InvalidOperationException with message like "Enumeration has not started. Call MoveNext."
/// </summary>
internal static Exception EnumerationNotStarted() {
return new InvalidOperationException(Strings.EnumerationNotStarted);
}
/// <summary>
/// InvalidOperationException with message like "Enumeration already finished."
/// </summary>
internal static Exception EnumerationFinished() {
return new InvalidOperationException(Strings.EnumerationFinished);
}
/// <summary>
/// InvalidOperationException with message like "can't add another casing for identifier {0}"
/// </summary>
internal static Exception CantAddCasing(object p0) {
return new InvalidOperationException(Strings.CantAddCasing(p0));
}
/// <summary>
/// InvalidOperationException with message like "can't add new identifier {0}"
/// </summary>
internal static Exception CantAddIdentifier(object p0) {
return new InvalidOperationException(Strings.CantAddIdentifier(p0));
}
/// <summary>
/// ArgumentException with message like "Invalid output directory."
/// </summary>
internal static Exception InvalidOutputDir() {
return new ArgumentException(Strings.InvalidOutputDir);
}
/// <summary>
/// ArgumentException with message like "Invalid assembly name or file extension."
/// </summary>
internal static Exception InvalidAsmNameOrExtension() {
return new ArgumentException(Strings.InvalidAsmNameOrExtension);
}
/// <summary>
/// ArgumentException with message like "Cannot emit constant {0} ({1})"
/// </summary>
internal static Exception CanotEmitConstant(object p0, object p1) {
return new ArgumentException(Strings.CanotEmitConstant(p0, p1));
}
/// <summary>
/// ArgumentException with message like "No implicit cast from {0} to {1}"
/// </summary>
internal static Exception NoImplicitCast(object p0, object p1) {
return new ArgumentException(Strings.NoImplicitCast(p0, p1));
}
/// <summary>
/// ArgumentException with message like "No explicit cast from {0} to {1}"
/// </summary>
internal static Exception NoExplicitCast(object p0, object p1) {
return new ArgumentException(Strings.NoExplicitCast(p0, p1));
}
/// <summary>
/// MissingMemberException with message like "name '{0}' not defined"
/// </summary>
internal static Exception NameNotDefined(object p0) {
return new MissingMemberException(Strings.NameNotDefined(p0));
}
/// <summary>
/// ArgumentException with message like "No default value for a given type."
/// </summary>
internal static Exception NoDefaultValue() {
return new ArgumentException(Strings.NoDefaultValue);
}
/// <summary>
/// ArgumentException with message like "Specified language provider type is not registered."
/// </summary>
internal static Exception UnknownLanguageProviderType() {
return new ArgumentException(Strings.UnknownLanguageProviderType);
}
/// <summary>
/// InvalidOperationException with message like "can't read from property"
/// </summary>
internal static Exception CantReadProperty() {
return new InvalidOperationException(Strings.CantReadProperty);
}
/// <summary>
/// InvalidOperationException with message like "can't write to property"
/// </summary>
internal static Exception CantWriteProperty() {
return new InvalidOperationException(Strings.CantWriteProperty);
}
/// <summary>
/// ArgumentException with message like "Cannot create instance of {0} because it contains generic parameters"
/// </summary>
internal static Exception IllegalNew_GenericParams(object p0) {
return new ArgumentException(Strings.IllegalNew_GenericParams(p0));
}
/// <summary>
/// System.Security.VerificationException with message like "Non-verifiable assembly generated: {0}:\nAssembly preserved as {1}\nError text:\n{2}\n"
/// </summary>
internal static Exception VerificationException(object p0, object p1, object p2) {
return new System.Security.VerificationException(Strings.VerificationException(p0, p1, p2));
}
}
// *** END GENERATED CODE ***
#endregion
}
|