public class | source

ValidationError

Constructor Summary

Public Constructor
public

constructor(type: string, message: string, data: object)

Create instance.

Member Summary

Public Members
public get

data: object

Data object with extra information about validation result.

source
public get

message: string

Validate error message.

source
public get

type: string

Validation rule type.

source

Public Constructors

public constructor(type: string, message: string, data: object) source

Create instance.

Params:

NameTypeAttributeDescription
type string

Validation rule type.

message string

Validate error message.

data object

data object with extra information about validation result.

Public Members

public get data: object source

Data object with extra information about validation result.

public get message: string source

Validate error message.

public get type: string source

Validation rule type.