Examples of EngineException


Examples of ca.pgon.saviorlib.Exceptions.EngineException

     * Will also check if the filesystems are accessible
     * You can call this as the first function of start()
     */
    protected void checkValidEngine() {
        if (sourceFS == null) {
            throw new EngineException("The source file system is not defined");
        }
       
        if (destinationFS == null) {
            throw new EngineException("The destination file system is not defined");
        }
       
        try {
            sourceFS.checkIfValid();
        } catch (FileSystemException ex) {
            throw new EngineException("The source file system is not accessible", ex);
        }
       
        try {
            destinationFS.checkIfValid();
        } catch (FileSystemException ex) {
            throw new EngineException("The destination file system is not accessible", ex);
        }
       
        if (ignoreFiles == null) {
            ignoreFiles = new ArrayList<String>();
        }
View Full Code Here

Examples of com.splout.db.engine.EngineManager.EngineException

      long end = System.currentTimeMillis();
      log.info(Thread.currentThread().getName() + ": Query [" + query + "] handled in [" + (end - start)
          + "] ms.");
      return result;
    } catch(SQLException e) {
      throw new EngineException(e);
    } catch(JSONSerDeException e) {
      throw new EngineException(e);
    } finally {
      try {
        if(rs != null) {
          rs.close();
        }
        if(stmt != null) {
          stmt.close();
        }
        connection.close();
      } catch(SQLException e) {
        throw new EngineException(e);
      }
    }
  }
View Full Code Here

Examples of com.uwyn.rife.engine.exceptions.EngineException

      {
        DatabaseLogsFactory.get().getLogMessages(log_messages, bot, channel, day);
      }
      catch (LogManagerException e)
      {
        throw new EngineException(e);
      }
     
      zip_stream.closeEntry();
      zip_stream.close();
      // disabled since tomcat closes it anyhow and complains otherwise
View Full Code Here

Examples of com.uwyn.rife.engine.exceptions.EngineException

          mTemplate.setValue("download", "");
        }
      }
      catch (LogManagerException e)
      {
        throw new EngineException(e);
      }
    }

    print(mTemplate);
  }
View Full Code Here

Examples of com.uwyn.rife.engine.exceptions.EngineException

    {
      bot.send(msg);
    }
    catch (CoreException e)
    {
      throw new EngineException(e);
    }
   
    mTemplate.setBlock("page_content", "page_content_executed");
    print(mTemplate);
  }
View Full Code Here

Examples of javax.speech.EngineException

            audio = freettsVoice.getAudioPlayer();
            if (audio == null) {
                audio = new com.sun.speech.freetts.audio.JavaClipAudioPlayer();
            }
            if (audio == null) {
                throw new EngineException("Can't get audio player");
            }
      freettsVoice.setAudioPlayer(audio);
  }

  if (freettsVoice.isLoaded()) {
View Full Code Here

Examples of modTransf.engine.EngineException

       if(fileName!=null && fileName.length()!=0)
       {
         this.fileName = CompiledScriptFactory.compileScript(fileName, exprLanguage);
       }
        else
         throw new EngineException("Property fileName is mandatory.");

       if(fileExt!=null && fileExt.length()!=0)
       {
         this.fileExt = CompiledScriptFactory.compileScript(fileExt, exprLanguage);
       }
     }
     catch(ScriptException ex)
     {
       throw new EngineException(ex);
     }

   }
View Full Code Here

Examples of modTransf.engine.EngineException

   */
  protected void chekProperty(String property, String tagName, String name)
    throws EngineException
  {
    if( property == null )
      throw new EngineException( tagName + " Attribute '" + name + "' is mandatory." );
  }
View Full Code Here

Examples of modTransf.engine.EngineException

    else if( "global".equalsIgnoreCase(scope) )
      return RuleContext.GLOBAL_SCOPE;
    else if( "request".equalsIgnoreCase(scope) )
      return RuleContext.REQUEST_SCOPE;
    else
      throw new EngineException( "Scope '" + scope +"' not defined." );
  }
View Full Code Here

Examples of modTransf.engine.EngineException

   public void engineStart(RuleContext context)
    throws EngineException
  {
     rule = context.getTransformation().getRuleSet().getRule(ruleName);
     if( rule == null )
       throw new EngineException("No rule found under name '" + ruleName + "'." );

     // Check number of parameters
     checkParameterCount();

     // call life cycle on parameters if needed
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.