Permalink
Browse files

Rename ‘AmandaError’ to ‘ValidationError’

  • Loading branch information...
1 parent 971a2f0 commit 56a38343465472faba97913c922d408802183006 @Baggz committed Mar 11, 2012
Showing with 5 additions and 4 deletions.
  1. +5 −4 src/engines/json/error.js
@@ -1,9 +1,9 @@
/**
- * AmandaError
+ * ValidationError
*
* @constructor
*/
-var AmandaError = function() {
+var ValidationError = function() {
this.length = 0;
};
@@ -14,7 +14,7 @@ var AmandaError = function() {
*
* @param {object} error
*/
-AmandaError.prototype.addError = function(error) {
+ValidationError.prototype.addError = function(error) {
this[this.length] = error;
this.length++;
};
@@ -24,7 +24,8 @@ each({
getProperties: 'property',
getMessages: 'message'
}, function(key, value) {
- AmandaError.prototype[key] = function() {
+ ValidationError.prototype[key] = function() {
return pluck(this, value);
};
});
+

0 comments on commit 56a3834

Please sign in to comment.