updated comment
This commit is contained in:
parent
31d1828cb3
commit
3940c65249
|
@ -59,7 +59,8 @@ public class OatResolver {
|
||||||
LOG.info("returning legacy token {} for user {}", msgToken, username);
|
LOG.info("returning legacy token {} for user {}", msgToken, username);
|
||||||
return Response.ok(userToken).build();
|
return Response.ok(userToken).build();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
LOG.error("Exception:", e);
|
||||||
|
|
||||||
if (!(e instanceof WebApplicationException)) {
|
if (!(e instanceof WebApplicationException)) {
|
||||||
// UNEXPECTED EXCEPTION managing it as WebApplicationException
|
// UNEXPECTED EXCEPTION managing it as WebApplicationException
|
||||||
String error = "Error occurred on getting legacy token. Please, contact the support!";
|
String error = "Error occurred on getting legacy token. Please, contact the support!";
|
||||||
|
@ -68,7 +69,6 @@ public class OatResolver {
|
||||||
throw ExceptionManager.internalErrorException(req, error, this.getClass(), null);
|
throw ExceptionManager.internalErrorException(req, error, this.getClass(), null);
|
||||||
}
|
}
|
||||||
// ALREADY MANAGED AS WebApplicationException
|
// ALREADY MANAGED AS WebApplicationException
|
||||||
LOG.error("Exception:", e);
|
|
||||||
throw (WebApplicationException) e;
|
throw (WebApplicationException) e;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue