Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Zend Frameworkを使用しZend_Aclていますが、ユーザーがリソースへのアクセスを拒否されたときに例外をスローしたいと考えています。どの例外クラスを使用しますか?
Zend_Acl
あなたが使うことができます
throw new Zend_Controller_Action_Exception('Forbidden', 403);
それがあなたが求めているものであるならば、あなたはそれについて特定の例外を持っていません。Zend_Exceptionから拡張してそれをスローする独自の例外クラスを作成します。
Zend_Exception