-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[23966] Improve input error to provide reason of failure #203
Conversation
Codecov Report
@@ Coverage Diff @@
## dev #203 +/- ##
======================================
Coverage ? 86.85%
Complexity ? 252
======================================
Files ? 44
Lines ? 1073
Branches ? 101
======================================
Hits ? 932
Misses ? 88
Partials ? 53
Flags with carried forward coverage won't be shown. Click here to find out more. |
* @param message associated message of the exception. | ||
*/ | ||
sealed class InputException(override val message: String) : Exception(message) | ||
object ExpiredChallengeException : InputException("Expired challenge can not be updated") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should message
be a string resource instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't need localization for the message, the idea is to explain the reason to the developer.
Ticket
Description
Commit message
Screenshot
Testing