'use strict';

function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }

var _classCallCheck = _interopDefault(require('@babel/runtime/helpers/classCallCheck'));
var _possibleConstructorReturn = _interopDefault(require('@babel/runtime/helpers/possibleConstructorReturn'));
var _getPrototypeOf = _interopDefault(require('@babel/runtime/helpers/getPrototypeOf'));
var _inherits = _interopDefault(require('@babel/runtime/helpers/inherits'));
var Exception = _interopDefault(require('.'));

var InvalidDateException =
/*#__PURE__*/
function (_Exception) {
  _inherits(InvalidDateException, _Exception);

  function InvalidDateException(date) {
    _classCallCheck(this, InvalidDateException);

    return _possibleConstructorReturn(this, _getPrototypeOf(InvalidDateException).call(this, "".concat(date, " is not a valid date"), InvalidDateException));
  }

  return InvalidDateException;
}(Exception);

module.exports = InvalidDateException;
//# sourceMappingURL=InvalidDateException.js.map
