I am currently using the play2 framework.
I have several classes which are throwing exceptions but play2s global onError handler uses throwable
exceptions
onError
Can I check a throwable object if it is a NoSessionException ?
Sure:
Throwable t = ...; if (t instanceof NoSessionException) { ... // If you need to use information in the exception // you can cast it in here }