public function findOrFail($id)
    {
        $user = $this->find($id);

        if (! isset($user->id)) {
            throw new QueryException("User [{$id}] not found.");
        }

        return $user;
    }
public function findOrFail($id)
    {
        $user = $this->find($id);

        if (! isset($user->id)) {
            throw new QueryException("User [{$id}] not found.");
        }

        return $user;
    }
public function findOrFail ( $ id ) { $ user = $ this -> find ( $ id ) ; if ( ! isset ( $ user -> id ) ) { throw new QueryException ( "User [{$id}] not found." ) ; } return $ user ; }
Find user by id or trow if unsuccessful.

@param int $id

@throws \Assely\Singularity\QueryException

@return \WP_User|false
Find user by id or trow if unsuccessful .