The Labs \ Source Viewer \ SSCLI \ Microsoft.JScript \ CmdLineError

  1. // ==++==
  2. //
  3. //
  4. // Copyright (c) 2006 Microsoft Corporation. All rights reserved.
  5. //
  6. // The use and distribution terms for this software are contained in the file
  7. // named license.txt, which can be found in the root of this distribution.
  8. // By using this software in any fashion, you are agreeing to be bound by the
  9. // terms of this license.
  10. //
  11. // You must not remove this notice, or any other, from this software.
  12. //
  13. //
  14. // ==--==
  15. namespace Microsoft.JScript
  16. {
  17.    
  18.     using System;
  19.    
  20.     // The values assigned in this enumeration correspond to JSC errors JS2000-JS3000. The values
  21.     // of existing tags should not be changed since documentation for the error code would then
  22.     // also require a change.
  23.    
  24.     // To add an error:
  25.     // 1. add the enumeration here
  26.     // 2. edit CmdLineException.ResourceKey to return the key for the string resource
  27.     // 3. edit Microsoft.JScript.txt to add the string resource
  28.     // 4. update LAST to the largest error code you assigned so that the names can be
  29.     // kept in alphabetical order without making it too easy to assign a duplicate
  30.    
  31.     public enum CmdLineError
  32.     {
  33.         NoError = 0,
  34.        
  35.         //2000-3000 JSC command line errors
  36.         AssemblyNotFound = 2001,
  37.         // Assembly not found;;Referenced assembly '{0}' could not be found
  38.         CannotCreateEngine = 2002,
  39.         // Cannot create JScript engine = Cannot create JScript engine
  40.         CompilerConstant = 2003,
  41.         // Compiler constant = Cannot change value of compiler constant;;Cannot change value of compiler constant '{0}'
  42.         DuplicateFileAsSourceAndAssembly = 2004,
  43.         // Duplicate file as source and assembly = File name is listed as both a source file and an imported assembly;;Duplicate file name: '{0}' is listed as both a source file and an imported assembly
  44.         DuplicateResourceFile = 2005,
  45.         // Duplicate resource file = Duplicate resource file reference;;Resource file '{0}' referenced more than once
  46.         DuplicateResourceName = 2006,
  47.         // Duplicate resource name = Duplicate resource name;;Resource name '{0}' is not unique
  48.         DuplicateSourceFile = 2007,
  49.         // Duplicate source file = File name is listed as a source file more than once;;Duplicate file name: '{0}' is listed as a source file more than once
  50.         ErrorSavingCompiledState = 2008,
  51.         // Error saving compiled state = Error: Could not save compiled state;;Error saving compiled state: {0}
  52.         IncompatibleTargets = 2038,
  53.         // Incompatible targets = CompilerParameters.GenerateExecutable and CompilerParameters.CompilerOptions specify incompatible target types;;The value of CompilerParameters.GenerateExecutable is not compatible with '{0}'
  54.         InvalidAssembly = 2009,
  55.         // Invalid assembly = Invalid assembly reference;;'{0}' is not a valid assembly
  56.         InvalidCharacters = 2036,
  57.         // Invalid characters = File name contains invalid characters (wildcard characters are not supported);;File name '{0}' contains invalid characters (wildcard characters are not supported)
  58.         InvalidCodePage = 2010,
  59.         // Invalid code page = Code page is invalid or not installed;;Code page '{0}' is invalid or not installed
  60.         InvalidDefinition = 2011,
  61.         // Invalid definition = Definitions must be assigned a boolean or integral value;;Definition '{0}' must be assigned a boolean or integral value
  62.         InvalidForCompilerOptions = 2037,
  63.         // Invalid for CompilerOptions = Invalid option in CompilerOptions field;;'{0}' is not allowed in the CompilerOptions field
  64.         InvalidLocaleID = 2012,
  65.         // Invalid Locale ID = Locale ID is invalid or not installed;;Locale ID '{0}' is invalid or not installed
  66.         InvalidPlatform = 2039,
  67.         // Invalid platform = Platform is invalid. Specify 'x86', 'Itanium', 'x64', or 'anycpu';;Platform '{0}' is invalid. Specify 'x86', 'Itanium', 'x64', or 'anycpu'
  68.         InvalidTarget = 2013,
  69.         // Invalid target = Target type is invalid;;Target '{0}' is invalid. Specify 'exe' or 'library'
  70.         InvalidSourceFile = 2014,
  71.         // Invalid source file = Invalid source file;;'{0}' is not a valid source file
  72.         InvalidVersion = 2031,
  73.         // Invalid version = Invalid version argument;;'{0}' is not a valid version string
  74.         InvalidWarningLevel = 2015,
  75.         // Invalid warning level = Invalid warning level;;Invalid warning level specified with option '{0}'
  76.         ManagedResourceNotFound = 2022,
  77.         // Managed resource not found = Managed resource not found;;Managed resource '{0}' was not found
  78.         MissingDefineArgument = 2018,
  79.         // Missing define argument = Missing identifier for '-define:' command line option
  80.         MissingExtension = 2019,
  81.         // Missing extension = Missing file extension;; Missing file extension for '{0}'
  82.         MissingLibArgument = 2020,
  83.         // Missing lib argument = Missing file specification for '-lib:' command line option
  84.         MissingReference = 2034,
  85.         // Missing reference = Missing reference in argument list;;Missing reference in argument list '{0}'
  86.         MissingVersionInfo = 2021,
  87.         // Missing version info = Missing version info in -assembly.version option
  88.         MultipleOutputNames = 2016,
  89.         // Multiple output filenames = Multiple output filenames specified
  90.         MultipleTargets = 2017,
  91.         // Multiple targets = Multiple targets specified
  92.         MultipleWin32Resources = 2033,
  93.         // Multiple win32resources = Cannot specify more than one Win32 resource file
  94.         NestedResponseFiles = 2023,
  95.         // Nested response files = Cannot process nested response files
  96.         NoCodePage = 2024,
  97.         // No code page = No code page is specified;;No code page is specified with option '{0}'
  98.         NoFileName = 2025,
  99.         // No filename = No filename specified;;No filename specified with option '{0}'
  100.         NoInputSourcesSpecified = 2026,
  101.         // No input sources specified = No input sources specified
  102.         NoLocaleID = 2027,
  103.         // No Locale ID = No Locale ID is specified;;No Locale ID is specified with option '{0}'
  104.         NoWarningLevel = 2028,
  105.         // No warning level = No warning level specified;;No warning level specified with option '{0}'
  106.         ResourceNotFound = 2029,
  107.         // Resource not found = Win32 resource not found;;Win32 resource '{0}' was not found
  108.         SourceFileTooBig = 2032,
  109.         // Source file too big
  110.         SourceNotFound = 2035,
  111.         // Source not found = Source file not found;;Could not find file '{0}'
  112.         UnknownOption = 2030,
  113.         // Unknown option = Unknown option;;Unknown option '{0}'
  114.         Unspecified = 2999,
  115.         // Unspecified error; see message text for more details
  116.         // LAST should be the updated to the value of the last assigned enumeration value
  117.         LAST = InvalidPlatform
  118.         // 2038
  119.     }
  120. }

Developer Fusion