Package com.jitcaforwin.basic.api.exceptions

Examples of com.jitcaforwin.basic.api.exceptions.PlaylistDeletedException


  public boolean isInProgress() throws PlaylistDeletedException {
    try {
      return this.iTunesCom.getPropertyAsBoolean("InProgress");
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new PlaylistDeletedException();
    }
  }
View Full Code Here


    try {
      return new ITTrackCollectionImpl(this.iTunesCom.getPropertyAsDispatchObject("Tracks"));
    } catch (DispatchObjectNullException e) {
      return null; // No tracks
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new PlaylistDeletedException();
    }

  }
View Full Code Here

      return new ITOperationStatusImpl(this.iTunesCom.callFunction("AddFile", file.getAbsolutePath())
          .getDispatch());
    } catch (DispatchObjectNullException e) {
      throw new JitcaFileException("Error occured during addFile. File could not be added.");
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new PlaylistDeletedException(this);
    } catch (ITUNES_E_OBJECTLOCKED e) {
      throw new PlaylistReadOnlyException(this);
    }

  }
View Full Code Here

      }
      return new ITOperationStatusImpl(this.iTunesCom.callFunction("AddFiles", paths).getDispatch());
    } catch (DispatchObjectNullException e) {
      throw new JitcaFileException("Error occured during addFiles. Files could not be added.");
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new PlaylistDeletedException(this);
    } catch (ITUNES_E_OBJECTLOCKED e) {
      throw new PlaylistReadOnlyException(this);
    }
  }
View Full Code Here

    try {
      return new ITURLTrackImpl(this.iTunesCom.callFunction("AddURL", url).getDispatch());
    } catch (DispatchObjectNullException e) {
      throw new JitcaURLException("Error occured during addURL. URL could not be added.");
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new PlaylistDeletedException(this);
    } catch (ITUNES_E_OBJECTLOCKED e) {
      throw new PlaylistReadOnlyException(this);
    }
  }
View Full Code Here

      if (track == null) {
        throw new JitcaTrackException("Error occured during addTrack. Track could not be added.");
      }
      return track;
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new PlaylistDeletedException(this);
    } catch (ITUNES_E_OBJECTLOCKED e) {
      throw new PlaylistReadOnlyException(this);
    }
  }
View Full Code Here

  public IITPlaylist createPlaylist(String playlistName) throws PlaylistDeletedException {
    try {
      return ITPlaylistImpl.newIITPlaylist(this.iTunesCom.callFunction("CreatePlaylist", playlistName)
          .getDispatch());
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new PlaylistDeletedException(this);
    }
  }
View Full Code Here

  public IITPlaylist createFolder(String folderName) throws PlaylistDeletedException {
    try {
      return ITPlaylistImpl.newIITPlaylist(this.iTunesCom.callFunction("CreateFolder", folderName).getDispatch());
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new PlaylistDeletedException(this);
    }
  }
View Full Code Here

  public void reveal() throws PlaylistDeletedException {
    try {
      this.iTunesCom.callProcedure("Reveal");
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new PlaylistDeletedException(this);
    }
  }
View Full Code Here

  public boolean isShared() throws PlaylistDeletedException {
    try {
      return this.iTunesCom.getPropertyAsBoolean("Shared");
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new PlaylistDeletedException(this);
    }
  }
View Full Code Here

TOP

Related Classes of com.jitcaforwin.basic.api.exceptions.PlaylistDeletedException

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.