Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
dorado.Exception.alertException = function(e) {
	console.log(e);
}

 

定制异常消息:

Code Block
javascript
dorado.Exception.getExceptionMessage = function (e) {
	if (!e || e instanceof dorado.AbortException) return null;
	var msg;
	if (e instanceof dorado.Exception) msg = e.message;
	else if (e instanceof Error) msg = e.message;
	else msg = e;
	return msg;
};