function sendRequest(BambooHTTPRequest $request) {
        $response = parent::sendRequest($request);

        if ($response->isError()) {
            $error = [];
            $error[] = $response->statusCode;
            $error[] = "BambooHR Error";
            $error[] = $response->getErrorMessage();
            throw new BambooHRException(implode(" - ", $error), 1);
        }

        return $response;
	}