public boolean updateErrorInElement ( final String name , final Exception exception ) throws SocketViewException { if ( name != null && exception != null ) { if ( exception instanceof AbstractPerfidixMethodException ) { final AbstractPerfidixMethodException exc = ( AbstractPerfidixMethodException ) exception ; viewStub . updateError ( name , exc . getExec ( ) . getClass ( ) . getSimpleName ( ) ) ; } if ( exception instanceof SocketViewException ) { final SocketViewException viewException = ( SocketViewException ) exception ; viewStub . updateError ( name , viewException . getExc ( ) . getClass ( ) . getSimpleName ( ) ) ; } } return true ; }
This method informs the view that an error occurred while benching the current element .