Skip to main content
Version: Next

RemoteException.location() method

The primary location where the exception occurred.

Signature​

class RemoteException {
location(): CallFrame;
}

Returns:

CallFrame

Remarks​

For runtime errors this is stackTrace()[0]. For compilation and syntax errors (where stackTrace() is empty), it falls back to the top-level coordinates reported for the exception.