X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/0494b8d9b9bb03ab6c22b34dae81261e3cd7e3e6..7a654f8d43fdb43d78b63d90528bed6e86b608cc:/docs/output/Ext.Error.html diff --git a/docs/output/Ext.Error.html b/docs/output/Ext.Error.html deleted file mode 100644 index 316c45af..00000000 --- a/docs/output/Ext.Error.html +++ /dev/null @@ -1,31 +0,0 @@ -
Package: | Ext |
Defined In: | Error.js |
Class: | Error |
Subclasses: | Api.Error, DataProxy.Error, DataReader.Error, Store.Error |
Extends: | Object |
A base error class. Future implementations are intended to provide more -robust error handling throughout the framework (in the debug build only) -to check for common errors and problems. The messages issued by this class -will aid error checking. Error checks will be automatically removed in the -production build so that performance is not negatively impacted.
-Some sample messages currently implemented:
-"DataProxy attempted to execute an API-action but found an undefined -url / function. Please review your Proxy url/api-configuration." -
-"Could not locate your "root" property in your server response. -Please review your JsonReader config to ensure the config-property -"root" matches the property your server-response. See the JsonReader -docs for additional assistance." --
An example of the code used for generating error messages:
try {
- generateError({
- foo: 'bar'
- });
-}
-catch (e) {
- console.error(e);
-}
-function generateError(data) {
- throw new Ext.Error('foo-error', data);
-}
Method | Defined By | |
---|---|---|
getMessage()
- :
- String getMessage getMessage Parameters:
| Error | |
getName()
- :
- String getName getName Parameters:
| Error | |
toJson()
- :
- String toJson toJson Parameters:
| Error |