How the server can notify the client that the subcription failed due to a specific error?

Based on the documentation, SubscriptionException will not notify the clients even if it was thrown, however, the light streamer client has onSubscribtionError method which will be called when the client is notified about the failure of the subscription.

I didn't figure out how can I notify the client.

Waiting your help.