What happens if a custom error code is not handled in your application?

Responsive Ad Header

Question

Grade: Education Subject: Support
What happens if a custom error code is not handled in your application?
Asked by:
71 Viewed 71 Answers

Answer (71)

Best Answer
(312)
If a custom error code is not handled in your application, Joi will still return the original error message associated with the validation failure. However, failing to handle custom errors can lead to unexpected behavior and difficulty in debugging, as you might not be aware of the specific error that occurred.