classes ErrorException and Exception are defined in Core, not in SPL reference