Create a new Multi error
human friendly error message
Create a new Multi error
human friendly error message
enhanced error options
Create a new Multi error
human friendly error message
unique identifier for this particular occurrence of the problem
Create a new Multi error
human friendly error message
unique identifier for this particular occurrence of the problem
enhanced error options
Error date
Error name (type)
Error subject, 'common'
as default
Return the info object for this error
Determine if this instance is a Multi error
Return the number of causes of this error
Return the unique identifier associated to this instance
Process the errors thrown by Joi into the cause array
ValidationError
from a Joi validation process
number or error that have been introduced
Return Multi error in JSON format
Improved handling of validation errors.
Multi helps us to manage validation or information transformation errors, in other words, it helps us manage any process that may generate multiple non-hierarchical errors (an error is not a direct consequence of the previous one) by providing us with some tools:
Furthermore, in combination with the types of error Boom, errors for the REST-API interfaces, and Crash, standard application errors, it allows a complete management of the different types of errors in our backend.