Class

ValidationError

ValidationError(message, errors)

Error which is thrown when there are validation errors with records

Constructor

# new ValidationError(message, errors)

Parameters:
Name Type Description
message String

custom message

errors Object

error messages

{...} String

error for particular field where ... is a BaseProperty#path

{...}.message String

human readible message

{...}.type String

string type (i.e. required)

View Source fixtures/typescript/entity.ts, line 6

Classes

ValidationError
ValidationError

ValidationError(message, errors)

Error which is thrown when there are validation errors with records

Constructor

# new ValidationError(message, errors)

Parameters:
Name Type Description
message String

custom message

errors Object

error messages

{...} String

error for particular field where ... is a BaseProperty#path

{...}.message String

human readible message

{...}.type String

string type (i.e. required)

View Source fixtures/typescript/entity.ts, line 6

Classes

ValidationError
ValidationError