package com.stripe.exception;

public class RateLimitException extends InvalidRequestException {
  private static final long serialVersionUID = 2L;

  /**
   * Constructs a new rate limit exception with the specified details.
   *
   * @deprecated Use new constructor with `code` argument instead.
   */
  @Deprecated
  // TODO: remove this constructor in next major version bump
  public RateLimitException(String message, String param, String requestId, Integer statusCode,
      Throwable e) {
    this(message, param, null, requestId, statusCode, e);
  }

  public RateLimitException(String message, String param, String requestId, String code,
      Integer statusCode, Throwable e) {
    super(message, param, code, requestId, statusCode, e);
  }
}

@@ -518,14 +518,8 @@
 ram,
- null,
  req
@@ -517,32 +517,38 @@
 aram, requestId,
+ null,
  statusCode, e);
@@ -708,22 +708,16 @@
 , param,
- code,
  request
@@ -719,16 +719,22 @@
 questId,
+ code,
  statusC

fix swapped constructor paramaters