don't translate error message and replace console log with exception

This commit is contained in:
fredj
2011-09-20 14:26:13 +02:00
parent 91f610f19c
commit 6e9a3e4c13
55 changed files with 91 additions and 924 deletions
+2 -4
View File
@@ -6,8 +6,6 @@
/**
* @requires OpenLayers/BaseTypes/Class.js
* @requires OpenLayers/Util.js
* @requires OpenLayers/Console.js
* @requires OpenLayers/Lang.js
*/
/**
@@ -104,7 +102,7 @@ OpenLayers.Format = OpenLayers.Class({
* Depends on the subclass
*/
read: function(data) {
OpenLayers.Console.userError(OpenLayers.i18n("readNotImplemented"));
throw new Error('Read not implemented.');
},
/**
@@ -118,7 +116,7 @@ OpenLayers.Format = OpenLayers.Class({
* {String} A string representation of the object.
*/
write: function(object) {
OpenLayers.Console.userError(OpenLayers.i18n("writeNotImplemented"));
throw new Error('Write not implemented.');
},
CLASS_NAME: "OpenLayers.Format"