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 name (type)
Optional override for formatting stack traces
Causes source of error
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
Look in the nested causes of the error and return the first occurrence of a cause with the indicated name
name of the error to search for
the cause, if there is any present with that name
Returns a full stack of the error and causes hierarchically. The string contains the description of the point in the code at which the Error/Crash/Multi was instantiated
Check if there is any cause in the stack with the indicated name
name of the error to search for
Boolean value as the result of the search
Remove a error from the array of causes
the cause that have been removed
Add a new error on the array of causes
Cause to be added to the array of causes
Return Multi error in JSON format
Return a string formatted as name:message
Get the trace of this hierarchy of errors
Create .stack property on a target object
Generated using TypeDoc
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.