Also add an $e->getCode() please. Mainly handy if we're going to get hierarchies and people catch a parent exception. They'd still need to know the original exception code (which should be the same as what the server throws).