Fraci
    Preparing search index...

    Type Alias FraciErrorCode

    FraciErrorCode:
        | "INITIALIZATION_FAILED"
        | "INTERNAL_ERROR"
        | "INVALID_FRACTIONAL_INDEX"
        | "MAX_LENGTH_EXCEEDED"
        | "MAX_RETRIES_EXCEEDED"

    Error codes for the Fraci library.

    These codes help identify specific error conditions that may occur during library operations.

    • INITIALIZATION_FAILED: Indicates that the library failed to initialize. Currently seen when the base string does not meet the requirements, or when the specified model or field does not exist in the generated Prisma client.
    • INTERNAL_ERROR: Indicates an internal error in the library. Please file an issue if you see this.
    • INVALID_FRACTIONAL_INDEX: Indicates that an invalid fractional index was provided to generateKeyBetween or generateNKeysBetween functions.
    • MAX_LENGTH_EXCEEDED: Indicates that the maximum length of the generated key was exceeded.
    • MAX_RETRIES_EXCEEDED: Indicates that the maximum number of retries was exceeded when generating a key.

    FraciError - The custom error class for the Fraci library