docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class JsException

    A JavaScript exception

    Inheritance
    object
    Exception
    JsException
    APIError
    APIError
    Implements
    ISerializable
    Inherited Members
    Exception.GetBaseException()
    Exception.GetObjectData(SerializationInfo, StreamingContext)
    Exception.GetType()
    Exception.Data
    Exception.HelpLink
    Exception.HResult
    Exception.InnerException
    Exception.Source
    Exception.TargetSite
    Exception.SerializeObjectState
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: Meta.InstantGames.Runtime
    Assembly: Unity.Meta.InstantGames.Runtime.dll
    Syntax
    public class JsException : Exception, ISerializable

    Properties

    Message

    A message describing the error

    Declaration
    public override string Message { get; }
    Property Value
    Type Description
    string
    Overrides
    Exception.Message

    Name

    The name of the JavaScript exception type

    Declaration
    public string Name { get; }
    Property Value
    Type Description
    string

    StackTrace

    A string representation of the immediate frames on the call stack

    Declaration
    public override string StackTrace { get; }
    Property Value
    Type Description
    string
    Overrides
    Exception.StackTrace

    Methods

    ToString()

    A string representation of the exception, including the name of the underlying JavaScript exception and the stack trace

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    The string representation of the exception

    Overrides
    Exception.ToString()

    Implements

    ISerializable
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)