added new method handleRestFailure to handle rest specific errors

This commit is contained in:
Sebastian Sdorra
2012-03-13 21:09:02 +01:00
parent 58e3d98c69
commit 55f4482a5a

View File

@@ -390,7 +390,11 @@ Sonia.scm.Main = Ext.extend(Ext.util.Observable, {
console.debug( "callback is not a function or object. " + callback );
}
}, this);
},
},
handleRestFailure: function(response, title, message){
this.handleFailure(response.status, title, message, response.responseText);
},
handleFailure: function(status, title, message, serverException){
if (debug){