Table of Contents

Class Exception

Namespace
JavaScriptCore
Assembly
JavaScriptCore-6.0.dll
public sealed class Exception : Object, IDisposable, NativeObject, GTypeProvider, InstanceFactory
Inheritance
Exception
Implements
Inherited Members

Constructors

Exception(params ConstructArgument[])

[Obsolete("Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.", DiagnosticId = "GirCore1007", UrlFormat = "https://gircore.github.io/docs/integration/diagnostic/1007.html")]
public Exception(params ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

Exception(CreationData)

[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected Exception(CreationData data)

Parameters

data CreationData

Exception(ExceptionHandle)

protected Exception(ExceptionHandle handle)

Parameters

handle ExceptionHandle

Methods

GetBacktraceString()

public string? GetBacktraceString()

Returns

string

GetColumnNumber()

public uint GetColumnNumber()

Returns

uint

GetGType()

public static Type GetGType()

Returns

Type

GetLineNumber()

public uint GetLineNumber()

Returns

uint

GetMessage()

public string GetMessage()

Returns

string

GetName()

public string GetName()

Returns

string

GetSourceUri()

public string? GetSourceUri()

Returns

string

New(Context, string)

public static Exception New(Context context, string message)

Parameters

context Context
message string

Returns

Exception

NewFromPointer(nint, bool)

Creates a new managed Exception instance for a given pointer.

public static Exception NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

Exception

NewVprintf(Context, string, nint)

public static Exception NewVprintf(Context context, string format, nint args)

Parameters

context Context
format string
args nint

Returns

Exception

NewWithName(Context, string, string)

public static Exception NewWithName(Context context, string name, string message)

Parameters

context Context
name string
message string

Returns

Exception

NewWithNameVprintf(Context, string, string, nint)

public static Exception NewWithNameVprintf(Context context, string name, string format, nint args)

Parameters

context Context
name string
format string
args nint

Returns

Exception

NewWithProperties(ConstructArgument[])

Creates a new Exception and sets the properties specified by the construct arguments.

public static Exception NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

Exception

Report()

public string Report()

Returns

string

ToString()

public string ToString()

Returns

string