Annotation Interface ApiError


public @interface ApiError
Details of an error that could be returned.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    int
    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

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The schema for the error detail, if relevant.
    An identifier for this error condition.
  • Element Details

    • code

      int code
      The error code that will be returned in this situation.
    • description

      String description
      A description of the error condition, and what may have caused it.
    • id

      String id
      An 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 detailSchema
      The schema for the error detail, if relevant.
      Default:
      @org.forgerock.api.annotations.Schema