public enum BerliozErrorID extends Enum<BerliozErrorID> implements ErrorID
These are included in error responses whenever Berlioz is able to identify the error.
Enum Constant and Description |
---|
GENERATOR_ERROR_MULTIPLE
Multiple errors were thrown by a generator.
|
GENERATOR_ERROR_UNCHECKED
An unchecked exception was thrown by a generator.
|
GENERATOR_ERROR_UNFORCED
An exception was thrown deliberately by a generator.
|
LIFECYCLE_ERROR
An error occurred while trying to start or stop Berlioz.
|
SERVICES_INVALID
An error occurred because the service configuration file could not be found.
|
SERVICES_MALFORMED
An error occurred because the XSLT file could not be found.
|
SERVICES_NOT_FOUND
An error occurred because the XSLT file could not be found.
|
TRANSFORM_DYNAMIC_ERROR
A dynamic transform error occurred (for example because the XSLT function expected a different data type).
|
TRANSFORM_INVALID
A transform error occurred because the XSLT is not valid.
|
TRANSFORM_MALFORMED_SOURCE_XML
A transform error occurred because the source XML was not well-formed.
|
TRANSFORM_NOT_FOUND
A transform error occurred because the XSLT file could not be found.
|
UNEXPECTED
A completely unexpected error.
|
Modifier and Type | Method and Description |
---|---|
String |
id()
Returns a string representation of this error code.
|
String |
toString()
Returns the same as the
id() method. |
static BerliozErrorID |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BerliozErrorID[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BerliozErrorID UNEXPECTED
public static final BerliozErrorID LIFECYCLE_ERROR
public static final BerliozErrorID SERVICES_NOT_FOUND
public static final BerliozErrorID SERVICES_MALFORMED
public static final BerliozErrorID SERVICES_INVALID
public static final BerliozErrorID TRANSFORM_NOT_FOUND
public static final BerliozErrorID TRANSFORM_INVALID
public static final BerliozErrorID TRANSFORM_MALFORMED_SOURCE_XML
public static final BerliozErrorID TRANSFORM_DYNAMIC_ERROR
public static final BerliozErrorID GENERATOR_ERROR_UNCHECKED
public static final BerliozErrorID GENERATOR_ERROR_UNFORCED
public static final BerliozErrorID GENERATOR_ERROR_MULTIPLE
public static BerliozErrorID[] values()
for (BerliozErrorID c : BerliozErrorID.values()) System.out.println(c);
public static BerliozErrorID valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic final String id()
The ID is the same as the name, but
For example, the ID of SERVICES_NOT_FOUND
is bzi-services-not-found
.
public final String toString()
id()
method.
toString
in class Enum<BerliozErrorID>
Copyright © 2016 Allette Systems. All rights reserved.