1.可以自己强转,这种有classcastexception的风险,err as base.BusinessError;2.简单判断if(err.code != null && err.message != null){ // xxxx }
1.可以自己强转,这种有classcastexception的风险,err as base.BusinessError;
2.简单判断