Class: DomainError

lib/common/errors~DomainError()

Generic domain error class

lib/common/errors~DomainError(message, causes)

new DomainError(message, causes)

Constructor for domain errors

Parameters:
Name Type Default Description
message string

a human readable error message

causes Array null

underlying errors causing this error

Source: