Skip to content

Function: isValidationError()

ts
function isValidationError(error): error is Error & { code: "VALIDATION"; expected?: unknown; status: number; type: string; validator?: { properties?: Record<string, unknown> } };

Defined in: packages/core/src/exceptions/validation.exception.ts:8

Parameters

ParameterType
errorunknown

Returns

error is Error & { code: "VALIDATION"; expected?: unknown; status: number; type: string; validator?: { properties?: Record<string, unknown> } }

Released under the MIT License.