HydraException.js (874B)
1 /** 2 * Represents a hydra exception. 3 * 4 * @class 5 */ 6 Ext.define('PartKeepr.data.HydraException', { 7 config: { 8 /** 9 * @cfg {String} description 10 * The description of the exception 11 */ 12 description: undefined, 13 14 /** 15 * @cfg {String} title 16 * The title of the exception 17 */ 18 title: undefined, 19 20 /** 21 * @cfg {Array} trace 22 * The trace of the exception 23 */ 24 trace: [] 25 }, 26 27 /** 28 * Creates the HydraException object. 29 * @param {Object} [config] Config object. 30 */ 31 constructor: function(config) { 32 if (config["hydra:description"]) { 33 config.description = config["hydra:description"]; 34 } 35 36 if (config["hydra:title"]) { 37 config.title = config["hydra:title"]; 38 } 39 40 this.initConfig(config); 41 } 42 });