import type { Nullable, NullOr } from "@joookiwi/type"; import type { Enumerable } from "../Enumerable"; import type { EnumerableConstructor } from "../EnumerableConstructor"; import type { ExceptionWithNullableCause } from "./declaration/ExceptionWithNullableCause"; import type { ExceptionWithValue } from "./declaration/ExceptionWithValue"; /** * An exception to tell that the {@link value value received} was not one of * the {@link expectedEnumerableConstructors enumerable instances (constructors) expected} * * @see https://docs.oracle.com/en/java/javase/22/docs/api/java.base/java/lang/ClassCastException.html Java ClassCastException * @see https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-class-cast-exception Kotlin ClassCastException * @see https://learn.microsoft.com/dotnet/api/system.invalidcastexception C# InvalidCastException */ export declare class InvalidEnumerableException[], const CAUSE extends Error = never> extends TypeError implements ExceptionWithValue, ExceptionWithNullableCause { #private; readonly name: string; constructor(message: string, value: ENUMERABLE, expectedEnumerableConstructors: EXPECTED_ENUMERABLE_CONSTRUCTORS, cause?: Nullable); /** The {@link Enumerable} value that was invalid */ get value(): ENUMERABLE; /** The expected {@link EnumerableConstructor enumerable constructors} that were assumed to be one of them */ get expectedEnumerableConstructors(): EXPECTED_ENUMERABLE_CONSTRUCTORS; get cause(): NullOr; } //# sourceMappingURL=InvalidEnumerableException.d.ts.map