Class

ValidationError

ValidationError#ValidationError(message, errors)

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 37

ValidationError#ValidationError(message, errors)

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 37