Class: ValidationError

utils/errorUtil~ValidationError()

new ValidationError()

Custom error class for handling validation errors.

Source:

Extends

  • BaseError

utils/errorUtil~ValidationError(message)

new ValidationError(message)

Constructs the ValidationError instance with a prefixed message.

Parameters:
Name Type Description
message string

The error message related to validation issues.

Source: