<!--
{
  "documentType" : "article",
  "framework" : "CKToolJS",
  "identifier" : "/documentation/CKToolJS/database-length-validation-and-value-errors",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Database, Length, Validation, and Value Errors"
}
-->

# Database, Length, Validation, and Value Errors

## Topics

### Database Errors

[`dictionary AuthenticationRequiredError {
	Int32 code;
	string message;
	string reason;
	string? detailedMessage;
	string? requestUuid;
	Int32? retryAfterSeconds;
	string redirectUrl;
};`](/documentation/CKToolJS/AuthenticationRequiredError)

An object that represents an error that occurs when authentication information is missing for the current user.

[`dictionary CKDBBatchDeleteError {
	string id;
	string code;
	string message;
};`](/documentation/CKToolJS/CKDBBatchDeleteError)

An object that represents an error that may occur when deleting a resource as part of a batch delete operation.

[`dictionary RequestError {
	Int32 code;
	string message;
	string reason;
	string? detailedMessage;
	string? requestUuid;
	Int32? retryAfterSeconds;
};`](/documentation/CKToolJS/RequestError)

An object that represents a general error from the service.

### Length Errors

[`interface LengthError`](/documentation/CKToolJS/LengthError)

The base class of length-related validation errors.

[`interface LengthGreaterThanMaxError`](/documentation/CKToolJS/LengthGreaterThanMaxError)

An error a validator emits when the length property of the value given is greater than the allowed maximum.

[`interface LengthLessThanMinError`](/documentation/CKToolJS/LengthLessThanMinError)

An error a validator emits when the length property of the value given is less than the allowed minimum.

[`interface LengthNotNumericError`](/documentation/CKToolJS/LengthNotNumericError)

An error a validator emits when the length property of a value isn’t numeric.

### Validation Errors

[`interface ValidationError`](/documentation/CKToolJS/ValidationError)

The base class of errors emitted when validators fail validation.

[`interface ArrayError`](/documentation/CKToolJS/ArrayError)

An error an array validator emits when an array’s elements fail validation.

[`interface MaxValueNotNumericError`](/documentation/CKToolJS/MaxValueNotNumericError)

An error a validator emits when the maximum value given isn’t numeric.

[`interface MinValueNotNumericError`](/documentation/CKToolJS/MinValueNotNumericError)

An error a validator emits when the minimum value given isn’t numeric.

[`interface ValueIsRequiredError`](/documentation/CKToolJS/ValueIsRequiredError)

The error emitted when a value is required but a validator determines the value is not present.

[`interface ValueNotConvertibleToTypeError`](/documentation/CKToolJS/ValueNotConvertibleToTypeError)

The base class of errors related to type validation or coercion.

[`interface ValueNotFunctionError`](/documentation/CKToolJS/ValueNotFunctionError)

An error a validator emits when a value isn’t a function.

[`interface ValueNotArrayBufferError`](/documentation/CKToolJS/ValueNotArrayBufferError)

An error a validator emits when a value isn’t an `ArrayBuffer`.

[`interface ValueNotArrayError`](/documentation/CKToolJS/ValueNotArrayError)

An error a validator emits when a value isn’t an array.

[`interface ValueNotBase64StringError`](/documentation/CKToolJS/ValueNotBase64StringError)

An error a validator emits when a value isn’t a `Base64` string or isn’t castable to that type.

[`interface ValueNotBlobError`](/documentation/CKToolJS/ValueNotBlobError)

An error a validator emits when a value isn’t a `Blob`.

[`interface ValueNotBooleanError`](/documentation/CKToolJS/ValueNotBooleanError)

An error a validator emits when a value isn’t a Boolean or isn’t castable to that type.

[`interface ValueNotByteArrayError`](/documentation/CKToolJS/ValueNotByteArrayError)

An error a validator emits when a value isn’t a `ByteArray` or isn’t castable to that type.

[`interface ValueNotByteError`](/documentation/CKToolJS/ValueNotByteError)

An error a validator emits when a value isn’t a `Byte` or isn’t castable to that type.

[`interface ValueNotDateError`](/documentation/CKToolJS/ValueNotDateError)

An error a validator emits when a value isn’t a `Date` or isn’t castable to that type.

[`interface ValueNotDateStringError`](/documentation/CKToolJS/ValueNotDateStringError)

An error a validator emits when a value isn’t a date string.

[`interface ValueNotDoubleError`](/documentation/CKToolJS/ValueNotDoubleError)

An error a validator emits when a value isn’t a `Double` or isn’t castable to that type.

[`interface ValueNotEnumValueError`](/documentation/CKToolJS/ValueNotEnumValueError)

An error a validator emits when a value isn’t a valid enumeration value.

[`interface ValueNotFloatError`](/documentation/CKToolJS/ValueNotFloatError)

An error a validator emits when a value isn’t a `Float` or isn’t castable to that type.

[`interface ValueNotInt32Error`](/documentation/CKToolJS/ValueNotInt32Error)

An error a validator emits when a value isn’t an `Int32` or isn’t castable to that type.

[`interface ValueNotInt64Error`](/documentation/CKToolJS/ValueNotInt64Error)

An error a validator emits when a value isn’t an `Int64` or isn’t castable to that type.

[`interface ValueNotJsonError`](/documentation/CKToolJS/ValueNotJsonError)

An error a validator emits when a value isn’t JSON.

[`interface ValueNotNumericError`](/documentation/CKToolJS/ValueNotNumericError)

An error a validator emits when a value isn’t numeric.

[`interface ValueNotObjectError`](/documentation/CKToolJS/ValueNotObjectError)

An error a validator emits when a value isn’t an object.

[`interface ValueNotStringError`](/documentation/CKToolJS/ValueNotStringError)

An error a validator emits when a value isn’t a string.

[`interface ValueNotUuidError`](/documentation/CKToolJS/ValueNotUuidError)

An error a validator emits when a value isn’t a `Uuid` or isn’t castable to that type.

[`interface ValueTypeNotRecognizedError`](/documentation/CKToolJS/ValueTypeNotRecognizedError)

An error that a deserializer emits when it fails to recognize the type of object to deserialize or process.

### Value Range Errors

[`interface ValueRangeError`](/documentation/CKToolJS/ValueRangeError)

The base class of range-related validation errors.

[`interface ValueGreaterThanMaxNumberError`](/documentation/CKToolJS/ValueGreaterThanMaxNumberError)

An error a validator emits when a given value is greater than the allowed maximum.

[`interface ValueLessThanMinNumberError`](/documentation/CKToolJS/ValueLessThanMinNumberError)

An error a validator emits when a given value is less than the allowed minimum.

[`interface ValueNotInNumberRangeError`](/documentation/CKToolJS/ValueNotInNumberRangeError)

An error a validator emits when a value can’t be represented by a JavaScript number due to being outside of the representable range.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)