Const
Factory constant for creating ValidationError instances. This is the main export for creating validation errors in the Vine validation library.
throw new E_VALIDATION_ERROR(errors) Copy
throw new E_VALIDATION_ERROR(errors)
const error = new E_VALIDATION_ERROR({ field: 'username', message: 'Username is required'}) Copy
const error = new E_VALIDATION_ERROR({ field: 'username', message: 'Username is required'})
Factory constant for creating ValidationError instances. This is the main export for creating validation errors in the Vine validation library.