Give a meaningful comment in the GssError and pass the exception in the GssFucntionException constructor.

Exemple of message : "Invalid resource type. Only DataResource and ImageResource are supported."