Manager/BaseManager.php
public function throwException($message = '', $type = 'default')
    {
        switch ($type) {
            case 'access-denied':
                throw new AccessDeniedException($message);
            case 'not-found':
                throw new NotFoundHttpException($message);
            case 'runtime':
                throw new \RuntimeException($message);
            default:
                throw new \Exception($message);
        }
    }
public function throwException($message = '', $type = 'default')
    {
        switch ($type) {
            case 'access-denied':
                throw new AccessDeniedException($message);
            case 'not-found':
                throw new NotFoundHttpException($message);
            case 'runtime':
                throw new \RuntimeException($message);
            default:
                throw new \Exception($message);
        }
    }
public function throwException ( $ message = '' , $ type = 'default' ) { switch ( $ type ) { case 'access-denied' : throw new AccessDeniedException ( $ message ) ; case 'not-found' : throw new NotFoundHttpException ( $ message ) ; case 'runtime' : throw new \ RuntimeException ( $ message ) ; default : throw new \ Exception ( $ message ) ; } }
Throw an Exception

@param string $type
@param string $message

@throws \RuntimeException
@throws NotFoundHttpException
@throws AccessDeniedException
@throws \Exception
Throw an Exception