assertRateLimitExceededError(error, props) {
    props.name = "RateLimitExceededError";
    props.type = "system";
    props.code = "rate_limit_exceeded";

    errors.assertShipEngineError(error, props);

    expect(error.retryAfter).to.be.a("number").equal(props.retryAfter);
  }
/**
   * Asserts that an error is a valid RateLimitExceededError with the expected values
   */
Asserts that an error is a valid RateLimitExceededError with the expected values
Asserts that an error is a valid RateLimitExceededError with the expected values
assertRateLimitExceededError(error, props) {
    props.name = "RateLimitExceededError";
    props.type = "system";
    props.code = "rate_limit_exceeded";
    errors.assertShipEngineError(error, props);
    expect(error.retryAfter).to.be.a("number").equal(props.retryAfter);
  }
assertRateLimitExceededError ( error , props ) { props . name = "RateLimitExceededError" ; props . type = "system" ; props . code = "rate_limit_exceeded" ; errors . assertShipEngineError ( error , props ) ; expect ( error . retryAfter ) . to . be . a ( "number" ) . equal ( props . retryAfter ) ; }
Asserts that an error is a valid RateLimitExceededError with the expected values
Asserts that an error is a valid RateLimitExceededError with the expected values