Sign In Register

How can we help you today?

Start a new topic

GameSparks Unity SDK eats our exceptions


since the last update many of our exceptions appear as debug logs. I found this piece of code:


if (a != null) {
	try {
		a ();
	} catch (Exception e) {
		if (ExceptionReporter != null) {
			ExceptionReporter (e);
		} else {
			Debug.Log (e);

What is the correct way to set the ExceptionReporter? How is it meant to work?

Why is this not documented and why does this not appear in the change logs?



1 person has this question

it's been another 9 days.

it's been another 5 months

It's been 5 months!

2 people like this

Still happening for me

1 person likes this


1 person likes this


Bumpety bump bump

Bump :)

The main problem here is:

ExceptionReporter is public in the PlatformBase class but is not defined in the IGSPlatform interface.
To set the Exception reporter we cast the GS.GSPlatform to PlatformBase atm but it would be nice to have it defined in the interface.


var platform = GS.GSPlatform as PlatformBase;

                if(platform != null)
                    platform.ExceptionReporter += Debug.LogException;


It is really a problem that such changes are not listed in the SDK changelog. You guys did a better job documentating changes back then.

1 person likes this

Hi guys,

I'll check in on this with the SDK team.



It would be nice to have some information here :)

Login to post a comment