protected function prepareException(Exception $e)
    {
        $e = parent::prepareException($e);

        if($e instanceof PermissionDoesNotExist || $e instanceof AuthorizationException) {
            $e = new AuthenticationException($e->getMessage());
        }

        return $e;
    }