Skip to content

ElevenLabsErrorParseResult

Namespace: Vercel.AI.ElevenLabs

public sealed class ElevenLabsErrorParseResult

Result of parsing an ElevenLabs error body.

Inheritance: object

View source

ElevenLabsErrorParseResult(bool, ElevenLabsErrorData?)

Section titled “ElevenLabsErrorParseResult(bool, ElevenLabsErrorData?)”
public ElevenLabsErrorParseResult(bool success, ElevenLabsErrorData? value)

Creates a parse result.

Parameters

Name Type Description
success bool
value ElevenLabsErrorData

View source

public ElevenLabsErrorData? RawValue { get; }

Same payload as Value.

Value: ElevenLabsErrorData

View source

public bool Success { get; }

True when error.message and error.code were present.

Value: bool

View source

public ElevenLabsErrorData? Value { get; }

Parsed error.

Value: ElevenLabsErrorData

View source

Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product