Fiori里的exception继承

58 阅读1分钟

Exception是基类,所有的FormatException,ValidateException通过下列方式继承ziException:

var ParseException = function(message) {
  this.name = "ParseException";
  this.message = message;
 };
 ParseException.prototype = jQuery.sap.newObject(Exception.prototype);
 return ParseException;

image