ctx.setRequestLogExtension(new BaselineLogExtension(null, null, null));
try {
SimpleExceptionErrorCodeEnum errCode = SimpleExceptionErrorCodeEnum
.valueOf(message);
throw new SimpleException(ResponseCode.Unauthorised, errCode,
message);
} catch (IllegalArgumentException e) {
try {
WotsitExceptionErrorCodeEnum errCode = WotsitExceptionErrorCodeEnum
.valueOf(message);
throw new WotsitException(e,
ResponseCode.Forbidden,
errCode,
(message.hashCode() % 2 != 0) ? WotsitExceptionTypeEnum.CHEESY
: WotsitExceptionTypeEnum.SPICY, message);
} catch (IllegalArgumentException ex) {
}
throw new SimpleException(e,ResponseCode.Unauthorised,
SimpleExceptionErrorCodeEnum.NULL, message);
}
}