Create new ol.base and include ol.error

This commit is contained in:
Tom Payne
2012-06-22 11:50:35 +02:00
parent a0e5741774
commit fd4c776181
2 changed files with 3 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
goog.provide('ol.base');
goog.provide('ol.error');
/**
* @param {string} message Message.
*/
ol.error = function(message) {
if (ol.error.VERBOSE_ERRORS) {
throw new Error(message);
} else {
throw null;
}
};
/**
* @define {boolean}
*/
ol.error.VERBOSE_ERRORS = true;