SheetXL - v0.8.0-beta.9+sites.210.e2d420901
    Preparing search index...
    • Creates a new error instance based on the provided label or code.

      Parameters

      • label: string | number

        The error label or code corresponding to a built-in error type.

      • Optionalmessage: string

        Optional custom error message.

      • Optionaldetails: ErrorOptions

        Optional additional error details.

      Returns Known

      A new instance of the specified error type, or an Unknown error if the label/code is not recognized.

      • Useful when wanting to convey details beyond the standard error code.
      • This should be used sparingly as creating new objects can have a performance impact.