private void ErrorHandlerWithThrow(Phantasma.SDK.EPHANTASMA_SDK_ERROR_TYPE type, string msg) { // This handler uses Debug.Log() instead of Debug.LogError() to avoid getting to fatal error screen. Log.Write(type + ": " + msg); // We throw exception to be catched by StartThrowingCoroutine(), // so that it could be processed by calling code. throw new Exception(type + ": " + msg); }
private void ErrorHandler(Phantasma.SDK.EPHANTASMA_SDK_ERROR_TYPE type, string msg) { Log.WriteError(type + ": " + msg); }