original_string: protected function buildException($key, $maxAttempts)
      {
          $retryAfter = $this->getTimeUntilNextRetry($key);
  
          $headers = $this->getHeaders(
              $maxAttempts,
              $this->calculateRemainingAttempts($key, $maxAttempts, $retryAfter),
              $retryAfter
          );
  
          return new ThrottleRequestsException(
              'Too Many Attempts.', null, $headers
          );
      }
code: protected function buildException($key, $maxAttempts)
      {
          $retryAfter = $this->getTimeUntilNextRetry($key);
  
          $headers = $this->getHeaders(
              $maxAttempts,
              $this->calculateRemainingAttempts($key, $maxAttempts, $retryAfter),
              $retryAfter
          );
  
          return new ThrottleRequestsException(
              'Too Many Attempts.', null, $headers
          );
      }
code_tokens: protected function buildException ( $ key , $ maxAttempts ) { $ retryAfter = $ this -> getTimeUntilNextRetry ( $ key ) ; $ headers = $ this -> getHeaders ( $ maxAttempts , $ this -> calculateRemainingAttempts ( $ key , $ maxAttempts , $ retryAfter ) , $ retryAfter ) ; return new ThrottleRequestsException ( 'Too Many Attempts.' , null , $ headers ) ; }
docstring: Create a 'too many attempts' exception.
  
  @param  string  $key
  @param  int  $maxAttempts
  @return \Illuminate\Http\Exceptions\ThrottleRequestsException
docstring_tokens: Create a too many attempts exception .