Skip to content

JsError

Namespace: Vercel.AI.Provider

public class JsError : Exception, ISerializable

JavaScript Error analog whose ToString() omits the stack.

Inheritance: object → Exception

Implements: ISerializable

Derived: JsRangeError, JsTypeError

View source

public JsError(string? message)

Creates an error with <code class=“paramref”>message</code>.

Parameters

Name Type Description
message string

View source

public virtual string ErrorName { get; }

JavaScript error.name.

Value: string

View source

public override string ToString()

Returns Name or Name: message, matching Error.prototype.toString.

Returns: string

View source

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