Skip to content

Access Expired status while keeping ThrowsOnError = true #88

Answered by DevTrevi
Mrizzi-96 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @ Mrizzi-96, yes this is the expected behavior
Usually, exceptions regarding failed updates are not thrown until the files reaches MaxFileAge, in order to allow the validation to be completed if the service is temporarly unavailable for whatever reason.
When throwOnError is true, every mandatory step in validation will throw an exception, because validation at that point is already completed with a failure, or because a technical problem is preventing the execution of the required steps (e.g. values are not present and can not be downloaded, or have past MaxFileAge)

If you want to access the failure details in order to give additional details to the user, you can access the same proper…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Mrizzi-96
Comment options

Answer selected by Mrizzi-96
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants