dwr.xml
<convert converter="exception"
match="exception.BusinessException">
<param name="include" value="errorCode" />
</convert>
BusinessException:
public BusinessException(String errorMessage) {
this.errorMessage = errorMessage;
}
public ErrorCode getErrorCode() {
return errorCode;
}
SubjectService.removeSubject(record,{
callback:function() {}
errorHandler:function(es,exception){
alert(exception.errorMessage);
}
----------------
打印出来的是unfined,请教DWR异常处理问题?
------解决方法--------------------------------------------------------
有exception.BusinessException("es",callback)么?