Annotation Type OnException


  • @Retention(RUNTIME)
    @Target(METHOD)
    @Documented
    public @interface OnException

    Annotation that designates a method to receive a callback when a mandatory transactional method of the object throws an unchecked exception. The object will be in the Pooled state if the post create method threw the exception, otherwise it will be in the Ready state and associated with a persistent entity.

    This callback method is invoked with the same transaction context as that held by the method that threw the exception, however the transaction has been marked for rollback.

    Since:
    Rhino 2.4.0