gis-common 5.1.19 → 5.1.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -137,7 +137,7 @@ class AudioPlayer {
137
137
  }
138
138
  }
139
139
  const ExceptionUtil = {
140
- getException(type, message) {
140
+ getException(type, message = "") {
141
141
  const _Exception = function() {
142
142
  Error.call(this, message);
143
143
  this.name = type;
@@ -153,44 +153,44 @@ const ExceptionUtil = {
153
153
  const _Exception = this.getException("Exception", msg);
154
154
  throw new _Exception(msg);
155
155
  },
156
- throwColorException(msg) {
157
- const _Exception = this.getException("ColorException", ErrorType.DATA_ERROR_COLOR + " -> " + (msg || ""));
156
+ throwColorException(msg = "") {
157
+ const _Exception = this.getException("ColorException", ErrorType.DATA_ERROR_COLOR + (msg ? " -> " + msg : ""));
158
158
  throw new _Exception(msg);
159
159
  },
160
- throwCoordinateException(msg) {
161
- const _Exception = this.getException("CoordinateException", ErrorType.DATA_ERROR_COORDINATE + " -> " + (msg || ""));
160
+ throwCoordinateException(msg = "") {
161
+ const _Exception = this.getException("CoordinateException", ErrorType.DATA_ERROR_COORDINATE + (msg ? " -> " + msg : ""));
162
162
  throw new _Exception(msg);
163
163
  },
164
- throwGeoJsonException(msg) {
165
- const _Exception = this.getException("GeoJsonException", ErrorType.DATA_ERROR_GEOJSON + " -> " + (msg || ""));
164
+ throwGeoJsonException(msg = "") {
165
+ const _Exception = this.getException("GeoJsonException", ErrorType.DATA_ERROR_GEOJSON + (msg ? " -> " + msg : ""));
166
166
  throw new _Exception(msg);
167
167
  },
168
- throwEmptyException(msg) {
169
- const _Exception = this.getException("EmptyException", ErrorType.PARAMETER_ERROR_LACK + " -> " + (msg || ""));
168
+ throwEmptyException(msg = "") {
169
+ const _Exception = this.getException("EmptyException", ErrorType.PARAMETER_ERROR_LACK + (msg ? " -> " + msg : ""));
170
170
  throw new _Exception(msg);
171
171
  },
172
- throwIntegerException(msg) {
173
- const _Exception = this.getException("IntegerException", ErrorType.PARAMETER_ERROR_INTEGER + " -> " + (msg || ""));
172
+ throwIntegerException(msg = "") {
173
+ const _Exception = this.getException("IntegerException", ErrorType.PARAMETER_ERROR_INTEGER + (msg ? " -> " + msg : ""));
174
174
  throw new _Exception(msg);
175
175
  },
176
- throwNumberException(msg) {
177
- const _Exception = this.getException("NumberException", ErrorType.PARAMETER_ERROR_NUMBER + " -> " + (msg || ""));
176
+ throwNumberException(msg = "") {
177
+ const _Exception = this.getException("NumberException", ErrorType.PARAMETER_ERROR_NUMBER + (msg ? " -> " + msg : ""));
178
178
  throw new _Exception(msg);
179
179
  },
180
- throwArrayException(msg) {
181
- const _Exception = this.getException("ArrayException", ErrorType.PARAMETER_ERROR_ARRAY + " -> " + (msg || ""));
180
+ throwArrayException(msg = "") {
181
+ const _Exception = this.getException("ArrayException", ErrorType.PARAMETER_ERROR_ARRAY + (msg ? " -> " + msg : ""));
182
182
  throw new _Exception(msg);
183
183
  },
184
- throwFunctionException(msg) {
185
- const _Exception = this.getException("FunctionException", ErrorType.PARAMETER_ERROR_FUNCTION + " -> " + (msg || ""));
184
+ throwFunctionException(msg = "") {
185
+ const _Exception = this.getException("FunctionException", ErrorType.PARAMETER_ERROR_FUNCTION + (msg ? " -> " + msg : ""));
186
186
  throw new _Exception(msg);
187
187
  },
188
- throwProcessException(msg) {
189
- const _Exception = this.getException("ProcessException", ErrorType.PROCESS_FAIL + " -> " + (msg || ""));
188
+ throwProcessException(msg = "") {
189
+ const _Exception = this.getException("ProcessException", ErrorType.PROCESS_FAIL + (msg ? " -> " + msg : ""));
190
190
  throw new _Exception(msg);
191
191
  },
192
- throwNetworkException(msg) {
193
- const _Exception = this.getException("NetworkException", ErrorType.REQUEST_ERROR_TIMEOUT + " -> " + (msg || ""));
192
+ throwNetworkException(msg = "") {
193
+ const _Exception = this.getException("NetworkException", ErrorType.REQUEST_ERROR_TIMEOUT + (msg ? " -> " + msg : ""));
194
194
  throw new _Exception(msg);
195
195
  }
196
196
  };