Package limelight

Examples of limelight.LimelightException


      OutputStream output = Context.fs().outputStream(llpName + ".llp");
      zipper.zipTo(output);
    }
    catch(Exception e)
    {
      throw new LimelightException("Failed to pack production: " + productionPath, e);
    }
  }
View Full Code Here


  public void setText(String text, Prop panel) throws LimelightException
  {
    if(text == null || text.length() == 0)
      return;
    if(panel.getTextAccessor() != this)
      throw new LimelightException("You may only set text on empty props.");
    TextPanel textPanel = new TextPanel(panel);
    panel.add(textPanel);
    panel.sterilize();
    panel.setTextAccessor(textPanel);
    textPanel.setText(text, panel);
View Full Code Here

    {
      input.close();
    }
    catch(IOException e)
    {
      throw new LimelightException(e);
    }
  }
View Full Code Here

    {
      return new String(bytes, "UTF-8");
    }
    catch(UnsupportedEncodingException e)
    {
      throw new LimelightException(e);
    }
  }
View Full Code Here

  public void zipTo(OutputStream output)
  {
    try
    {
      if(!fs.exists(directoryPath) && !fs.isDirectory(directoryPath))
        throw new LimelightException(directoryPath + " is not a valid directory");

      zipOutput = new ZipOutputStream(output);

      zipDirectory(directoryPath);

      zipOutput.finish();
      zipOutput.close();
    }
    catch(LimelightException e)
    {
      throw e;
    }
    catch(Exception e)
    {
      throw new LimelightException(e);
    }
  }
View Full Code Here

      }
    }
    catch(Exception e)
    {
      e.printStackTrace();
      throw new LimelightException("Failed to send call to Production player: " + name, e);
    }
    throw new LimelightException("No method found on Production player: " + name);
  }
View Full Code Here

      final Constructor constructor = playerClass.getConstructor();
      return constructor.newInstance();
    }
    catch(Exception e)
    {
      throw new LimelightException(e);
    }
  }
View Full Code Here

    {
      eventClass = (Class<? extends Event>) Class.forName(eventClassName);
    }
    catch(Exception e)
    {
      throw new LimelightException(e);
    }

    if(eventClass == null)
      return;
View Full Code Here

  public void addToIndex(PropPanel prop)
  {
    PropPanel value = index.get(prop.getId());
    if(value != null && value != prop)
      throw new LimelightException("Duplicate id: " + prop.getId());
    index.put(prop.getId(), prop);
  }
View Full Code Here

    if(result == null)
      result = convertShortHexWithoutAlphaColor(value);
    if(result == null)
      result = convertNamedColor(value);
    if(result == null)
      throw new LimelightException("Invalid color: " + value);

    return result;
  }
View Full Code Here

TOP

Related Classes of limelight.LimelightException

Copyright © 2018 www.massapicom. 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.