Examples of ProviderException


Examples of org.apache.wiki.api.exceptions.ProviderException

            }
            catch( ProviderException pe )
            {
                // this is a kludge, the exception that is caught here contains the i18n key
                // here we have the context available, so we can internationalize it properly :
                throw new ProviderException( Preferences.getBundle( context, InternationalizationManager.CORE_BUNDLE )
                                                        .getString( pe.getMessage() ) );
            }

            log.info( "User " + user + " uploaded attachment to " + parentPage +
                      " called "+filename+", size " + att.getSize() );
View Full Code Here

Examples of org.apache.wiki.providers.ProviderException

    public String getPageText( String pageName, int version )
        throws ProviderException
    {
        if( pageName == null || pageName.length() == 0 )
        {
            throw new ProviderException("Illegal page name");
        }

        String text = null;

        try
View Full Code Here

Examples of org.efs.openreports.providers.ProviderException

      return output;
    }
    catch (Exception e)
    {
      e.printStackTrace();
      throw new ProviderException("Error executing report query: " + e.getMessage());     
    }
    finally
    {
      try
      {
View Full Code Here

Examples of org.efs.openreports.providers.ProviderException

    }
  } 
 
  public List<ReportParameter> buildParameterList(Report report) throws ProviderException
  {
    throw new ProviderException("QueryReportEngine: buildParameterList not implemented.");
  }   
View Full Code Here

Examples of org.efs.openreports.providers.ProviderException

    {
      hibernateProvider.rollbackTransaction(tx);
         
      if (he.getCause() != null && he.getCause().getMessage() != null && he.getCause().getMessage().toUpperCase().indexOf("CONSTRAINT") > 0)
      {
        throw new ProviderException(LocalStrings.ERROR_ALERT_DELETION);
      }
       
      log.error("deleteReportAlert", he);     
      throw new ProviderException(LocalStrings.ERROR_SERVERSIDE);
    }
    finally
    {
      hibernateProvider.closeSession(session);
    }   
View Full Code Here

Examples of org.efs.openreports.providers.ProviderException

      alertLog.setStatus(ReportLog.STATUS_FAILURE);
      alertLog.setEndTime(new Date());

      reportLogProvider.updateReportLog(alertLog);
     
      throw new ProviderException(LocalStrings.ERROR_ALERTQUERY_INVALID);
    }
    finally
    {
      try
      {
View Full Code Here

Examples of org.efs.openreports.providers.ProviderException

      return output;
    }
    catch(Exception e)
    {
      e.printStackTrace();
      throw new ProviderException(e);
    }
    finally
    {
      try
      {
View Full Code Here

Examples of org.efs.openreports.providers.ProviderException

    }
  }
 
  public List buildParameterList(Report report) throws ProviderException
  {
    throw new ProviderException("JXLSReportEngine: buildParameterList not implemented.");
  }   
View Full Code Here

Examples of org.efs.openreports.providers.ProviderException

      } catch( Exception e ) {
        String msg = "Unable to complete query against datasourceName=[" + datasourceName +"]." +
                  " Please ensure the datasourceName in your xls template is valid." +
            "  Caught exception is " + e.getClass().getName() + ", message is " + e.getMessage();     
        log.error(msg);
        throw new ProviderException(msg)
      }
      return results;
    }
View Full Code Here

Examples of org.efs.openreports.providers.ProviderException

      } catch( Exception e ) {
        String msg = "Unable to execute sql=[" + sql + "] against datasourceId=[" + datasourceId +"]." +
                  " Please ensure the dataSourceId and SQL in your xls template are valid." +
            "  Caught exception is " + e.getClass().getName() + ", message is " + e.getMessage();     
        log.error(msg);        
        throw new ProviderException(msg);
      } finally {
        super.setConnection(defaultConnection);
      }
      return list;
   
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.