ExceptionAbstract::getCode() method should be const It currently prevents us from catching exceptions as const references as it should be done.