|
|
|
@ -136,10 +136,10 @@ public class PackHttpHandler extends BaseHttpHandler {
|
|
|
|
|
|
|
|
|
|
private static FineRespond handleException(Exception e) { |
|
|
|
|
if (e instanceof ReportExceedException) { |
|
|
|
|
return FineRespond.fail(((ReportExceedException) e).errorCode(), "模板并发访问超过最大限制"); |
|
|
|
|
return FineRespond.fail(((ReportExceedException) e).errorCode(), e.getMessage()); |
|
|
|
|
} |
|
|
|
|
if (e instanceof WidgetExceedException) { |
|
|
|
|
return FineRespond.fail(((WidgetExceedException) e).errorCode(), "组件并发访问超过最大限制"); |
|
|
|
|
return FineRespond.fail(((WidgetExceedException) e).errorCode(), e.getMessage()); |
|
|
|
|
} |
|
|
|
|
return Reflect.on(BaseAction.class).call("getExceptionRespond", e).get(); |
|
|
|
|
} |
|
|
|
|