The `ValidationErrors` object
ValidationErrors {}
The ValidationErrors is an extension of the CommonErrors object that represents multiple identification numbers under which the errors of the ValidationError type are prepared to throw.
ValidationErrors
CommonErrors
ValidationError
validation-errors.class.ts
public get(): ValidationError<ErrorId> | undefined Returns the ValidationError instance of the given unique identification id if set, otherwise undefinedarrow-up-right.
id
undefined
public getErrors(): { [Key in Id]: ValidationError<Key> | undefined } Returns an objectarrow-up-right of set type errors, where the key is a unique identification.
object
public set(): this Sets the ValidationError object with the message built from the given required problem, id, fix on the given or stored template under the given id.
problem
fix
template
Last updated 2 years ago