I think it's fine the way it is, if the error object that is being thrown still has the developerMessage available. Is this the case?

The developer that uses this SDK should be aware that developerMessage would probably be more descriptive than the message of the error.