Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace mine;
- use RuntimeException;
- use Something as Controller;
- class SomeKindOfException extends RuntimeException{
- public const REASON1 = "Sorry, but you hit reason 1";
- public const REASON2 = "Sorry, but you hit reason 2";
- }
- class SomeController extends Controller{
- public class somePublicAction(){
- throw new SomeKindOfException(SomeKindOfException::REASON2);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement