/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.dev/license
 */

/**
 * The list of error codes used in runtime code of the `common` package.
 * Reserved error code range: 2000-2999.
 */
export const enum RuntimeErrorCode {
  // NgSwitch errors
  PARENT_NG_SWITCH_NOT_FOUND = 2000,
  EQUALITY_NG_SWITCH_DIFFERENCE = 2001,

  // NgIf errors
  NG_IF_NOT_A_TEMPLATE_REF = 2020,

  // Pipe errors
  INVALID_PIPE_ARGUMENT = 2100,

  // NgForOf errors
  NG_FOR_MISSING_DIFFER = -2200,

  // I18n errors
  SUSPICIOUS_DATE_FORMAT = 2300,
  UNKNOWN_DATE_TYPE_VALUE = 2301,
  UNEXPECTED_TRANSLATION_TYPE = 2302,
  MISSING_EXTRA_LOCALE_DATA_FOR_LOCALE = 2303,
  LOCALE_DATA_UNDEFINED = 2304,
  INVALID_INTEGER_LITERAL = 2305,
  INVALID_DIGIT_INFO = 2306,
  INVALID_NUMBER_OF_DIGITS_AFTER_FRACTION = 2307,
  NO_PLURAL_MESSAGE_FOUND = 2308,
  VALUE_NOT_A_NUMBER = 2309,
  UNKNOWN_ZONE_WIDTH = 2310,
  INVALID_TO_DATE_CONVERSION = 2311,

  // Miscellaneous errors
  SCROLL_RESTORATION_UNSUPPORTED = 2400,

  // Keep 2800 - 2900 for Http Errors.

  // Image directive errors
  UNEXPECTED_SRC_ATTR = 2950,
  UNEXPECTED_SRCSET_ATTR = 2951,
  INVALID_INPUT = 2952,
  UNEXPECTED_INPUT_CHANGE = 2953,
  REQUIRED_INPUT_MISSING = 2954,
  LCP_IMG_MISSING_PRIORITY = 2955,
  PRIORITY_IMG_MISSING_PRECONNECT_TAG = 2956,
  UNEXPECTED_DEV_MODE_CHECK_IN_PROD_MODE = 2958,
  INVALID_LOADER_ARGUMENTS = 2959,
  OVERSIZED_IMAGE = 2960,
  TOO_MANY_PRELOADED_IMAGES = 2961,
  MISSING_BUILTIN_LOADER = 2962,
  MISSING_NECESSARY_LOADER = 2963,
  LCP_IMG_NGSRC_MODIFIED = 2964,
  OVERSIZED_PLACEHOLDER = 2965,
  TOO_MANY_PRIORITY_ATTRIBUTES = 2966,
  PLACEHOLDER_DIMENSION_LIMIT_EXCEEDED = 2967,
}
