Examples of JitcaGeneralException


Examples of com.jitcaforwin.main.exceptions.JitcaGeneralException

  public IITArtwork addArtworkFromFile(File artwork) throws JitcaGeneralException {
    try {
      return new ITArtworkImpl(this.iTunesCom.callFunction("AddArtworkFromFile", artwork.getAbsolutePath()).getDispatch());
    } catch (DispatchObjectNullException e) {
      throw new JitcaGeneralException("Artwork form file could not be added to Track.");
    }
  }
View Full Code Here

Examples of com.jitcaforwin.main.exceptions.JitcaGeneralException

  public IITOperationStatus addFile(File file) throws JitcaGeneralException {
    try {
      return new ITOperationStatusImpl(this.iTunesCom.callFunction(
          "AddFile", file.getAbsolutePath()).getDispatch());
    } catch (DispatchObjectNullException e) {
      throw new JitcaGeneralException(
          "Error occured during addFile. File could not be added.");
    }

  }
View Full Code Here

Examples of com.jitcaforwin.main.exceptions.JitcaGeneralException

        paths[i] = file[i].getAbsolutePath();
      }
      return new ITOperationStatusImpl(this.iTunesCom.callFunction(
          "AddFiles", paths).getDispatch());
    } catch (DispatchObjectNullException e) {
      throw new JitcaGeneralException(
          "Error occured during addFiles. Files could not be added.");
    }
  }
View Full Code Here

Examples of com.jitcaforwin.main.exceptions.JitcaGeneralException

  public IITURLTrack addURL(String url) throws JitcaGeneralException {
    try {
      return new ITURLTrackImpl(this.iTunesCom
          .callFunction("AddURL", url).getDispatch());
    } catch (DispatchObjectNullException e) {
      throw new JitcaGeneralException(
          "Error occured during addURL. URL could not be added.");
    }
  }
View Full Code Here

Examples of com.jitcaforwin.main.exceptions.JitcaGeneralException

  public IITTrack addTrack(IITTrack trackToAdd) throws JitcaGeneralException {
    ResultObject result = this.iTunesCom.callFunction("AddTrack",
        trackToAdd.getDispatchObject());
    IITTrack track = ITTrackImpl.newIITTrack(result.getDispatch());
    if (track == null) {
      throw new JitcaGeneralException(
          "Error occured during addTrack. Track could not be added.");
    }
    return track;

  }
View Full Code Here

Examples of com.jitcaforwin.main.exceptions.JitcaGeneralException

      ResultObject result = this.iTunesCom.callFunction("CreateEQPreset",
          eqPresetName);
      DispatchObject dispatch = result.getDispatch();
      return new ITEQPresetImpl(dispatch);
    } catch (DispatchObjectNullException e) {
      throw new JitcaGeneralException("EQPreset " + eqPresetName
          + "could not be created");
    }
  }
View Full Code Here

Examples of com.jitcaforwin.main.exceptions.JitcaGeneralException

      return new ITQuittingEventHandler(iTunes,
          (IiTunesQuittingEventsListener) listener);
    }

    else {
      throw new JitcaGeneralException("EventListener "
          + listener.getClass() + " not supported!");
    }
  }
View Full Code Here

Examples of com.jitcaforwin.main.exceptions.general.JitcaGeneralException

    File tempFile = new File("artwork-temp");
    if (!tempFile.exists())
      try {
        tempFile.createNewFile();
      } catch (IOException e) {
        throw new JitcaGeneralException(
            "Error occured during creating of new artwork. It was not possible to write the artwork image to a temporary file. Original cause of IOException: "
                + e.getMessage());
      }
    artwork.saveArtworkToFile(tempFile);
    return tempFile;
View Full Code Here

Examples of com.jitcaforwin.main.exceptions.general.JitcaGeneralException

      DispatchObject dispatch = result.getDispatch();
      return new ITEQPresetImpl(dispatch);
    } catch (ITUNES_E_OBJECTEXISTS e) {
      throw new EQPresetExists(eqPresetName);
    } catch (DispatchObjectNullException e) {
      throw new JitcaGeneralException("EQPreset " + eqPresetName + "could not be created");
    }
  }
View Full Code Here

Examples of com.jitcaforwin.main.exceptions.general.JitcaGeneralException

      DispatchObject dispatch = result.getDispatch();
      return new ITEQPresetImpl(dispatch);
    } catch (ITUNES_E_OBJECTEXISTS e) {
      throw new EQPresetExists(eqPresetName);
    } catch (DispatchObjectNullException e) {
      throw new JitcaGeneralException("EQPreset " + eqPresetName + "could not be created");
    }
  }
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.