I have a try/catch
block where I catch all Throwable
exceptions.
try {
...
} catch (Throwable $ex) {
...
}
How do I, at runtime, figure out what the exact class of the throw exception is? I want to add multiple catch
blocks to handle different exceptions differently, but am unable to find out the types of exceptions that are thrown.