guidovanbiemen/phrodo — Issue #4: InterfaceException
Author: guidovanbiemen
Created: 2012-02-26 18:40:28+00:00
State: open

Use SPL Exceptions whenever applicable.

An InterfaceException class should be created for exceptions that are allowed to surface at the interface. In case of a webbased interface, the code could be used as a statuscode in the response. An example of throwing such an exception would be:

```PHP
throw new InterfaceException('Page not found', 404)'
```

Console interfaces can use the InterfaceException code as an exit code.