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
constructArgumentsConstructArgument[]
Exception(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected Exception(CreationData data)
Parameters
dataCreationData
Exception(ExceptionHandle)
protected Exception(ExceptionHandle handle)
Parameters
handleExceptionHandle
Methods
GetBacktraceString()
public string? GetBacktraceString()
Returns
GetColumnNumber()
public uint GetColumnNumber()
Returns
GetGType()
public static Type GetGType()
Returns
GetLineNumber()
public uint GetLineNumber()
Returns
GetMessage()
public string GetMessage()
Returns
GetName()
public string GetName()
Returns
GetSourceUri()
public string? GetSourceUri()
Returns
New(Context, string)
public static Exception New(Context context, string message)
Parameters
Returns
NewFromPointer(nint, bool)
Creates a new managed Exception instance for a given pointer.
public static Exception NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewVprintf(Context, string, nint)
public static Exception NewVprintf(Context context, string format, nint args)
Parameters
Returns
NewWithName(Context, string, string)
public static Exception NewWithName(Context context, string name, string message)
Parameters
Returns
NewWithNameVprintf(Context, string, string, nint)
public static Exception NewWithNameVprintf(Context context, string name, string format, nint args)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new Exception and sets the properties specified by the construct arguments.
public static Exception NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
Report()
public string Report()
Returns
ToString()
public string ToString()