Fraci
    Preparing search index...

    Function isFraciError

    • Type guard that checks if the given error is an instance of FraciError.

      This is useful in error handling blocks to determine if an error originated from the Fraci library.

      Parameters

      • error: unknown

        The error to check

      Returns error is FraciError

      true if the error is a FraciError, false otherwise

      try {
      // Some Fraci operation
      } catch (error) {
      if (isFraciError(error)) {
      // Handle Fraci-specific error
      } else {
      // Handle other types of errors
      }
      }