Annotation Type ManualErrorHandling


  • @Retention(RUNTIME)
    @Target({TYPE,METHOD})
    public @interface ManualErrorHandling
    By default, GSP errors mechanism intercept errors before ExceptionMapper and ErrorEntityWriter and so their result is ignored. For the majority of cases this is acceptable behaviour because it grants custom error pages. But in some cases, it may be required to use standard mechanisms instead.

    This marker annotation could be used on resource method or entire resource class (to affect all methods) to disable GSP errors mechanism.

    Since:
    10.06.2019