rdsdataservice.js 524 B

12345678910111213141516171819
  1. var AWS = require('../core');
  2. AWS.util.update(AWS.RDSDataService.prototype, {
  3. /**
  4. * @return [Boolean] whether the error can be retried
  5. * @api private
  6. */
  7. retryableError: function retryableError(error) {
  8. if (error.code === 'BadRequestException' &&
  9. error.message &&
  10. error.message.match(/^Communications link failure/) &&
  11. error.statusCode === 400) {
  12. return true;
  13. } else {
  14. var _super = AWS.Service.prototype.retryableError;
  15. return _super.call(this, error);
  16. }
  17. }
  18. });