ドキュメント

Unity Engine

Download Unity

Unity Engine

ThrowNew(nint, string)

Constructs an exception object from the specified class with the \<tt\>message\</tt\> specified by message and causes that exception to be thrown.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.AndroidJNIModule

ThrowNew(IntPtr, string)

public static int ThrowNew(nint clazz, string message)

Parameters

clazz

The class of the exception to construct and throw.

message

The exception message.

Returns

Type

Description

intZero on success. A negative value on failure.

Remarks