API Reference Source
public class | source

ValidationErrorItem

Validation Error Item Instances of this class are included in the ValidationError.errors property.

Constructor Summary

Public Constructor
public

constructor(message: string, type: string, path: string, value: string, inst: Object, validatorKey: Object, fnName: string, fnArgs: string)

Creates new validation error item

Member Summary

Public Members
public

The DAO instance that caused the validation error

public

An error message

public

The field that triggered the validation error

public

The type/origin of the validation error

public

Parameters used with the BUILT-IN validator function, if applicable

public

A validation "key", used for identification

public

Property name of the BUILT-IN validator function that caused the validation error (e.g.

public

The value that generated the error

Public Constructors

public constructor(message: string, type: string, path: string, value: string, inst: Object, validatorKey: Object, fnName: string, fnArgs: string) source

Creates new validation error item

Params:

NameTypeAttributeDescription
message string

An error message

type string

The type/origin of the validation error

path string

The field that triggered the validation error

value string

The value that generated the error

inst Object
  • optional

the DAO instance that caused the validation error

validatorKey Object
  • optional

a validation "key", used for identification

fnName string
  • optional

property name of the BUILT-IN validator function that caused the validation error (e.g. "in" or "len"), if applicable

fnArgs string
  • optional

parameters used with the BUILT-IN validator function, if applicable

Public Members

public instance: Model source

The DAO instance that caused the validation error

public message: string source

An error message

public path: string source

The field that triggered the validation error

public type: string source

The type/origin of the validation error

public validatorArgs: string source

Parameters used with the BUILT-IN validator function, if applicable

public validatorKey: string source

A validation "key", used for identification

public validatorName: string source

Property name of the BUILT-IN validator function that caused the validation error (e.g. "in" or "len"), if applicable

public value: string source

The value that generated the error