Skip to content

Commit

Permalink
public
Browse files Browse the repository at this point in the history
  • Loading branch information
janolaveide committed Jun 4, 2021
1 parent 92ee1f1 commit 5b5d1f7
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@

import no.nav.vedtak.exception.IntegrasjonException;

class ExceptionTranslatingInvoker {
@SuppressWarnings("unchecked")
public class ExceptionTranslatingInvoker {

<T> T invoke(Invocation i, Class<T> clazz) {
public <T> T invoke(Invocation i, Class<T> clazz) {
return invoke(i, clazz, ProcessingException.class);
}

<T> T invoke(Invocation i, Class<T> clazz, Class<? extends Exception>... translatableExceptions) {
public <T> T invoke(Invocation i, Class<T> clazz, Class<? extends Exception>... translatableExceptions) {
try {
return i.invoke(clazz);
} catch (Exception ex) {
Expand Down

0 comments on commit 5b5d1f7

Please sign in to comment.