effect-io-ai

Package: effect
Module: Cause

Cause.NoSuchElementException

An error that occurs when an expected element is missing.

Details

This interface indicates scenarios like looking up an item in a collection or searching for data that should be present but isn’t. It helps your code signal a more specific issue rather than a general error.

Signature

export interface NoSuchElementException extends YieldableError {
  readonly _tag: "NoSuchElementException"
  readonly [NoSuchElementExceptionTypeId]: NoSuchElementExceptionTypeId
}

Source

Since v2.0.0