API reference

GetComponentException Class

Extends RuntimeException
Exception thrown when there's an error getting a component.
Constructed from native code via JNI (createGetComponentException in JavaUtils.cpp), so the class name must survive R8 obfuscation. C++ uses FindClass("com/meta/spatial/core/GetComponentException") plus GetMethodID(<init>) to instantiate it before throw.

Signature

class GetComponentException(
    message: String,
    val attributeId: Int? = null,
    val entityId: Long? = null,
    cause: Throwable? = null,
) : RuntimeException

Constructors

GetComponentException ( message , attributeId , entityId , cause )
Signature
constructor(
    message: String,
    attributeId: Int? = null,
    entityId: Long? = null,
    cause: Throwable? = null,
)
Parameters
message: String
attributeId: Int?  The attribute ID that caused the error (if applicable)
entityId: Long?  The entity ID involved in the operation (if applicable)
cause: Throwable?
Returns
GetComponentException

Properties

attributeId : Int?
[Get]
The attribute ID that caused the error (if applicable)
Signature
val attributeId: Int? = null
entityId : Long?
[Get]
The entity ID involved in the operation (if applicable)
Signature
val entityId: Long? = null