class ClientRuntimeErrorPopupPresenter extends ErrorPopupPresenter {

    public void showMessage( final ClientRuntimeError error) {
        StringBuilder result = new StringBuilder(DataSetExplorerConstants.INSTANCE.error());
        
        if (error != null) {
            final String message = error.getMessage();
            Throwable t = error.getRootCause();
            String localizedMessage = t != null ? t.getLocalizedMessage() : null;
            result = new StringBuilder(message);
            if (localizedMessage != null) {
                result.append(" ").append(DataSetExplorerConstants.INSTANCE.cause()).
                        append(": ").append(localizedMessage);
            }
        }
        
        showMessage(result.toString());
    }

    @Inject public  ClientRuntimeErrorPopupPresenter(View view);

}