Skip to content

Commit f6e0091

Browse files
committed
Exception handler rule was not working in web objects (#857)
Issue:108326
1 parent 1de914a commit f6e0091

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

gxweb/src/main/java/com/genexus/webpanels/GXWebObjectBase.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ public void doExecute() throws Exception
148148
}
149149
catch (Throwable e)
150150
{
151+
handleException(e.getClass().getName(), e.getMessage(), CommonUtil.getStackTraceAsString(e));
151152
cleanup(); // Antes de hacer el rethrow, hago un cleanup del objeto
152153
throw e;
153154
}
@@ -157,6 +158,8 @@ public void doExecute() throws Exception
157158
}
158159
}
159160

161+
public void handleException(String gxExceptionType, String gxExceptionDetails, String gxExceptionStack) {
162+
}
160163
public void executeUsercontrolMethod(String CmpContext, boolean IsMasterPage, String containerName, String methodName, String input, Object[] parms)
161164
{
162165
httpContext.executeUsercontrolMethod(CmpContext, IsMasterPage, containerName, methodName, input, parms);

gxweb/src/main/java/com/genexus/webpanels/GXWebPanel.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -452,6 +452,7 @@ public void doExecute() throws Exception
452452
}
453453
catch (Throwable e)
454454
{
455+
handleException(e.getClass().getName(), e.getMessage(), CommonUtil.getStackTraceAsString(e));
455456
cleanup(); // Antes de hacer el rethrow, hago un cleanup del objeto
456457
throw e;
457458
}

0 commit comments

Comments
 (0)