<?php

class Foo extends \Exception {
    public $message;
}

try {
    throw new Foo();
} catch (Exception $foo) {
}
