import type { Nullable, NullOr } from "@joookiwi/type"; import type { ExceptionWithNullableCause } from "./declaration/ExceptionWithNullableCause"; import type { ExceptionWithValue } from "./declaration/ExceptionWithValue"; /** * An {@link Error exception} made to tell that the type received by * {@link CompanionEnumerable.getValue getValue}, {@link CompanionEnumerable.getName getName} * and {@link CompanionEnumerable.getOrdinal getOrdinal} * that the value received was not a {@link String}, {@link Number}, {@link BigInt} or {@link Enumerable} * * @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 * @uniqueToJavascript */ export declare class UnhandledValueException, const CAUSE extends Error = never> extends TypeError implements ExceptionWithValue, ExceptionWithNullableCause { #private; readonly name: string; constructor(message: string, value: T, cause?: Nullable); /** The value that was in an invalid type */ get value(): T; get cause(): NullOr; } //# sourceMappingURL=UnhandledValueException.d.ts.map