-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(exception-handling): add HandleRestEx for IApi (#85)
- Loading branch information
Showing
2 changed files
with
25 additions
and
3 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
fpi-framework-core/src/main/java/com/abavilla/fpi/fw/annotation/HandleRestEx.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.abavilla.fpi.fw.annotation; | ||
|
||
import java.lang.annotation.Documented; | ||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Inherited; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import java.lang.annotation.Target; | ||
|
||
import com.abavilla.fpi.fw.exceptions.handler.ApiRepoExHandler; | ||
import org.eclipse.microprofile.rest.client.annotation.RegisterProvider; | ||
|
||
/** | ||
* Inherited annotation to handle rest client exceptions with {@link ApiRepoExHandler} | ||
* @author <a href="mailto:vincevillamora@gmail.com">Vince Villamora</a> | ||
*/ | ||
@RegisterProvider(value = ApiRepoExHandler.class) | ||
@Target({ ElementType.TYPE }) | ||
@Retention(RetentionPolicy.RUNTIME) | ||
@Documented | ||
@Inherited | ||
public @interface HandleRestEx { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters