Exception Objects Must be of Type RuntimeException Exception

You declared an exception variable as something other than a RuntimeException or a subclass of RuntimeException.


Example

The following declaration produces this error:

Exception error as Double