Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

boolean variable instead of true/false in the SkipException of ExceptionHandler

OferAug 30 2021

we have ExceptionHandler which is defined in the dataBindings.cpx

is it possible to use a boolean variable that is being controlled from the JSF page
or the following can't be changed after runtime:
public class DCExceptionhandler extends DCErrorHandlerImpl {
(
@Override
protected boolean skipException(Exception exception) {

if (exception instanceof SQLException){
return BOOLEAN_VARIABLE; -- instead of true/false
}
}
the purpose of this is to have a check box on the JSF page that can control the true/false of the skipException condition
if true - exception skipped
if false - exception shown

Comments
Post Details
Added on Aug 30 2021
11 comments
281 views