Package com.jitcaforwin.main.exceptions

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


  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

        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

  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

  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

      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

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

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

TOP

Related Classes of com.jitcaforwin.main.exceptions.JitcaGeneralException

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.