JsError
Namespace: Vercel.AI.Provider
public class JsError : Exception, ISerializableJavaScript Error analog whose ToString() omits the stack.
Inheritance: object → Exception
Implements: ISerializable
Derived: JsRangeError, JsTypeError
Constructors
Section titled “Constructors”JsError(string?)
Section titled “JsError(string?)”public JsError(string? message)Creates an error with <code class=“paramref”>message</code>.
Parameters
| Name | Type | Description |
|---|---|---|
message |
string |
Properties
Section titled “Properties”ErrorName
Section titled “ErrorName”public virtual string ErrorName { get; }JavaScript error.name.
Value: string
Methods
Section titled “Methods”ToString()
Section titled “ToString()”public override string ToString()Returns Name or Name: message, matching Error.prototype.toString.
Returns: string
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product