public boolean displayError(Exception ex, Component panel)
    {
        if (panel != null)
        {   // Always
            BaseApplet baseApplet = null;
            if (panel instanceof BaseApplet)
                baseApplet = (BaseApplet)panel;
            else
            {
                while ((panel = panel.getParent()) != null)
                {
                    if (panel instanceof org.jbundle.thin.base.screen.JBasePanel)
                    {
                        baseApplet = ((org.jbundle.thin.base.screen.JBasePanel)panel).getBaseApplet();
                        break;
                    }
                }
            }
            if (baseApplet != null)
            {
                //baseApplet.setLastError(ex.getMessage());
                baseApplet.setStatusText(ex.getMessage(), Constants.WARNING);
                if (ex instanceof DBException)
                    return true;
            }
        }
        return false;
    }
public boolean displayError ( Exception ex , Component panel ) { if ( panel != null ) { BaseApplet baseApplet = null ; if ( panel instanceof BaseApplet ) baseApplet = ( BaseApplet ) panel ; else { while ( ( panel = panel . getParent ( ) ) != null ) { if ( panel instanceof org . jbundle . thin . base . screen . JBasePanel ) { baseApplet = ( ( org . jbundle . thin . base . screen . JBasePanel ) panel ) . getBaseApplet ( ) ; break ; } } } if ( baseApplet != null ) { baseApplet . setStatusText ( ex . getMessage ( ) , Constants . WARNING ) ; if ( ex instanceof DBException ) return true ; } } return false ; }
Displayed this error code.
@param ex
@param source
@return True if it was a database exception and the error was displayed