Enum Class ErrorCode
- All Implemented Interfaces:
Serializable,Comparable<ErrorCode>,Constable
User-facing error categories from SRS section 15.3.
Every failure surfaced to a Jenkins build is classified by one of these codes. The code is the stable part of the contract; the accompanying message is explanatory and must always be value-free (SRS section 12.5): it may name files, property paths and offsets, but never current values, replacement values, credential IDs or source excerpts.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionNo longer reachable from a step invocation. -
Method Summary
Modifier and TypeMethodDescriptionstatic ErrorCodeReturns the enum constant of this class with the specified name.static ErrorCode[]values()Returns an array containing the constants of this enum class, in the order they are declared.wireName()Returns the wire form used in logs and documentation, e.g.
-
Enum Constant Details
-
PATH_SYNTAX
-
XML_PATH_UNSUPPORTED
No longer reachable from a step invocation.Since SRS section 8.7 added generic XML paths, every XML path is either a shorthand or a generic path, so nothing is left to be "unsupported". Retained because the code is part of the documented contract of section 15.3 and is still produced by
DotNetPathParserwhen that parser is called directly with a non-shorthand path. -
TARGET_GROUP_OVERLAP
-
FILE_NOT_FOUND
-
PATH_MISSING
-
PATH_AMBIGUOUS
-
NON_SCALAR
-
TYPE_INVALID
-
CREDENTIAL_TYPE_ACK_REQUIRED
-
DUPLICATE_JSON_KEY
-
CREDENTIAL_UNAVAILABLE
-
UNSUPPORTED_ENCODING
-
WORKSPACE_ESCAPE
-
PARSE_FAILED
-
SOURCE_CHANGED
-
WRITE_FAILED
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
wireName
Returns the wire form used in logs and documentation, e.g.CONFIG_SUBSTITUTION_PATH_SYNTAX.
-