Annotation Interface ExitCode


@Retention(RUNTIME) @Target(METHOD) @Documented @Reflective public @interface ExitCode
Defines exit code. Typically used with ExceptionResolver.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    int
    Exit code value.
    int
    Exit code value.
  • Element Details

    • value

      @AliasFor("code") int value
      Exit code value.
      Returns:
      exit code
      See Also:
      Default:
      0
    • code

      @AliasFor("value") int code
      Exit code value.
      Returns:
      exit code
      See Also:
      Default:
      0