<?php
namespace Acme\Account;
use Acme\Account\User;
class User {
public static function err($message) {
throw new User\Exception\SomeError($message);
}
}
namespace Acme\Account\User\Exception;
class SomeError extends \Exception { }
\Acme\Account\User::err("Confused Yet?");
Fatal error: Uncaught Acme\Account\User\Exception\SomeError: Confused Yet? in /in/5jdha:9
Stack trace:
#0 /in/5jdha(17): Acme\Account\User::err('Confused Yet?')
#1 {main}
thrown in /in/5jdha on line 9
Process exited with code 255.
Fatal error: Uncaught exception 'Acme\Account\User\Exception\SomeError' with message 'Confused Yet?' in /in/5jdha:9
Stack trace:
#0 /in/5jdha(17): Acme\Account\User::err('Confused Yet?')
#1 {main}
thrown in /in/5jdha on line 9
Process exited with code 255.