VisulimaError API
Last updated:
VisulimaError API
Constructor
new VisulimaError(options)Options:
name(string): Error namemessage(string): Error messagecause(Error, optional): Original error
Properties
hint: string
User-friendly hint for fixing the error.
cause: Error
Original error that caused this error.
Methods
getErrorCauses(error: Error): Error[]
Get all causes in error chain.
Example:
const causes = getErrorCauses(error);