Package org.forgerock.api.annotations
Annotation Interface ApiError
public @interface ApiError
Details of an error that could be returned.
-
Required Element Summary
Modifier and TypeRequired ElementDescriptionint
The error code that will be returned in this situation.A description of the error condition, and what may have caused it. -
Optional Element Summary
Modifier and TypeOptional ElementDescriptionThe schema for the error detail, if relevant.An identifier for this error condition.
-
Element Details
-
code
int codeThe error code that will be returned in this situation. -
description
String descriptionA description of the error condition, and what may have caused it.
-
-
-
id
String idAn identifier for this error condition. If specified, this error will be defined at the top-level and referenced when used. If not specified, this error will be declared inline.- Default:
- ""
-
detailSchema
Schema detailSchemaThe schema for the error detail, if relevant.- Default:
- @org.forgerock.api.annotations.Schema
-