Staquia API
    Preparing search index...

    Class SystemMismatchError

    Returned (never thrown) by next, previous and core when a position was created by a system with a different configuration (zero, first, last or ln). Each configuration gives the digits a different meaning, so mixing them would create invalid positions. Systems with the same configuration share positions.

    import Staquia, { SystemMismatchError } from "staquia";

    const alphabet = Staquia.create("!", "a", "z", 5, 15, 0.15);
    const digits = Staquia.create("#", "0", "9", 5, 15, 0.15);

    const result = alphabet.next(digits.start());
    if (!result.ok) console.log(result.error instanceof SystemMismatchError); // true

    Hierarchy

    • Error
      • SystemMismatchError
    Index

    Constructors

    Properties

    Accessors

    Methods

    Constructors

    Properties

    cause?: unknown
    message: string
    name: string
    stack?: string

    Accessors

    Methods

    • Indicates whether the argument provided is a built-in Error instance or not.

      Parameters

      • error: unknown

      Returns error is Error