Package limelight

Examples of limelight.LimelightException


      return "jar:" + zipPath.getAbsolutePath() + "!/" + filePath;
    }

    public void delete()
    {
      throw new LimelightException("JarPath.delete() is not supported");
    }
View Full Code Here


    else if(alignment == HorizontalAlignment.CENTER)
      return "center";
    else if(alignment == HorizontalAlignment.RIGHT)
      return "right";
    else
      throw new LimelightException("Unknown Horizontal Alignment: " + alignment);
  }
View Full Code Here

          setImage(imageCache.getImage(filename));
        }
      }
      catch(Exception e)
      {
        throw new LimelightException("Could not load image: " + filename + " (" + e.toString() + ")");
      }
    }
    return image;
  }
View Full Code Here

  public void add(Stage stage)
  {
    Log.info("Theater - adding stage: '" + stage.getName() + "'");
    if(get(stage.getName()) != null)
      throw new LimelightException("Duplicate stage name: '" + stage.getName() + "'");
    stages.add(stage);
    stage.getEventHandler().add(StageActivatedEvent.class, ActivateStageAction.instance);
    stage.getEventHandler().add(StageDeactivatedEvent.class, DeactivateStageAction.instance);
    stage.getEventHandler().add(StageClosedEvent.class, StageClosedAction.instance);
    stage.setTheater(this);
View Full Code Here

      else
      {
        index -= lineLength;
      }
    }
    throw new LimelightException("Can't find text location for index");
  }
View Full Code Here

        bufferedOutput.write(reader.readBytes(1000));
      bufferedOutput.flush();
    }
    catch(IOException e)
    {
      throw new LimelightException(e);
    }
  }
View Full Code Here

      return destination;
    }
    catch(Exception e)
    {
      throw new LimelightException("Failed to download resource: " + e.toString(), e);
    }
  }
View Full Code Here

  {
    Matcher matcher = filenameRegex.matcher(contentDisposition);
    if(matcher.find())
      return matcher.group(1);
    else
      throw new LimelightException("Can't find filename in Content-Disposition: " + contentDisposition);
  }
View Full Code Here

  private void verifyDestinationRoot()
  {
    if(!destinationRootVerified)
    {
      if(!fs.exists(destinationRoot))
        throw new LimelightException("Templater destination root doesn't exist: " + destinationRoot);
      destinationRootVerified = true;
    }
  }
View Full Code Here

      zipper.unzip(destination);
      return zipper.getDirectoryPath();
    }
    catch(Exception e)
    {
      throw new LimelightException("Failed to unpack production: " + packagePath, e);
    }
  }
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.