The console cannot deserialize custom SQLException if the exception class is not in its classpath (e.g. HsqlException).