天天看点

Fiori里的exception继承

Sent: Wednesday, May 13, 2015 3:58 PM

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

var ParseException = function(message) {
  this.name = "ParseException";
  this.message = message;
 };
 ParseException.prototype = jQuery.sap.newObject(Exception.prototype);
 
 return ParseException;
      
Fiori里的exception继承

继续阅读