Skip to content

Commit

Permalink
fix exception handling in AuthorizationWithTokenHelper to handle user…
Browse files Browse the repository at this point in the history
… messages
  • Loading branch information
DivineThreepwood committed Feb 20, 2024
1 parent 993923f commit 8c09442
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ class DeviceNotificationApp : AbstractAppController() {
companion object {
private val LOGGER = LoggerFactory.getLogger(TemplateApp::class.java)

private val VALIDATION_PERIOD: Duration = Duration.ofHours(24)
private val INITIAL_VALIDATION_DELAY: Duration = Duration.ofHours(1)
private val VALIDATION_PERIOD: Duration = Duration.ofMinutes(1)
private val INITIAL_VALIDATION_DELAY: Duration = Duration.ofMinutes(1)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -169,13 +169,13 @@ object AuthorizationWithTokenHelper {
null
)
} catch (exxx: CouldNotPerformException) {
exceptionStack =
MultiException.push(AuthorizationWithTokenHelper::class.java, exxx, exceptionStack)
exceptionStack = MultiException.push(AuthorizationWithTokenHelper::class.java, exxx, exceptionStack)
null
} ?: let {
MultiException.checkAndThrow({ "Permission denied!" }, exceptionStack)
null
}
}
MultiException.checkAndThrow({ "Permission denied!" }, exceptionStack)
null
}
} ?: throw FatalImplementationErrorException(
"ExceptionStack empty in error case.",
Expand Down

0 comments on commit 8c09442

Please sign in to comment.