use of limelight.LimelightException in project limelight by slagyr.
the class Animation method update.
public void update() {
makeupMissedUpdates();
timer.markTime();
try {
doUpdate();
} catch (Exception e) {
stop();
throw new LimelightException("Animation Cancelled", e);
}
}
use of limelight.LimelightException in project limelight by slagyr.
the class DirectoryZipper method zipTo.
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);
}
}
use of limelight.LimelightException in project limelight by slagyr.
the class ClojureProduction method prepareToOpen.
@Override
protected void prepareToOpen() {
try {
Var newProduction = loadVar("limelight.clojure.production", "new-production");
proxy = (ProductionProxy) newProduction.invoke(this);
} catch (Exception e) {
throw new LimelightException(e);
}
}
use of limelight.LimelightException in project limelight by slagyr.
the class TempTextAccessor method setText.
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);
}
use of limelight.LimelightException in project limelight by slagyr.
the class IoUtil method copyBytes.
public static void copyBytes(InputStream input, OutputStream output) {
try {
BufferedInputStream bufferedInput = new BufferedInputStream(input);
StreamReader reader = new StreamReader(bufferedInput);
BufferedOutputStream bufferedOutput = new BufferedOutputStream(output);
while (!reader.isEof()) bufferedOutput.write(reader.readBytes(1000));
bufferedOutput.flush();
} catch (IOException e) {
throw new LimelightException(e);
}
}
Aggregations