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

        if (! $term->getAdaptee()) {
            throw new QueryException("Taxonomy [{$this->slug}] could not find term [{$id}].");
        }

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

        if (! $term->getAdaptee()) {
            throw new QueryException("Taxonomy [{$this->slug}] could not find term [{$id}].");
        }

        return $term;
    }
public function findOrFail ( $ id ) { $ term = $ this -> find ( $ id ) ; if ( ! $ term -> getAdaptee ( ) ) { throw new QueryException ( "Taxonomy [{$this->slug}] could not find term [{$id}]." ) ; } return $ term ; }
Find term or trow if unssuccesful.

@param  int $id     Term id
@param  string $output
@param  string $filter

@return WP_Term
Find term or trow if unssuccesful .