ErrorDetail

Holds the details of a single error.

Members

message :string

A description of the error.
Example
detail.message -> "'country_code' length is not 2."

path :Array.<string>

Path of the error.
Example
detail.path -> []                        // At root level
detail.path -> [ 'user', 'email' ]       // At 'user.email'
detail.path -> [ 'user', 'tags', 1 ]     // At 'user.tags[1]'

type :string

The type of error.
Example
detail.type -> 'array.length'      // An array length error.