Annotation Interface ErrorCode


@Target({TYPE,METHOD}) @Retention(RUNTIME) @Documented public @interface ErrorCode
Marks an exception class or method with an error code value() of the application.

The error code is applied to the HTTP response.

Author:
Christian Bremer
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The error code of the exception in addition to the HTTP status code.
  • Element Details