Hi,

I used this with ExtJs 3.3



Ext.Direct.addProvider(WMS.API);
Ext.Direct.on('exception', function(e) {
Ext.Msg.alert('Exception', e.message);
});