On a vaguely similar note, this does not seem possible:
function do_something() throws Exception
{
// ...
}
and the alternative might be simply this:
/**
* @throws Exception
*/
function do_something()
{
// ...
}
which is fine for documentation, but doesn't "enforce" the contract.
Can anyone point me in the right direction here if I'm wrong? Thanks.