Skip to content

added LogExceptions

Compare
Choose a tag to compare
@ytake ytake released this 17 Mar 17:26
    /**
     * @LogExceptions
     * @param null $id
     * @return null
     * @throws \Exception
     */
    public function normalLog($id = null)
    {
        return $id;
    }

    /**
     * @LogExceptions(expect="\LogicException")
     */
    public function expectException()
    {
        throw new \LogicException;
    }

    /**
     * @LogExceptions(expect="\LogicException")
     */
    public function expectNoException()
    {
        throw new FileNotFoundException(__DIR__);
    }