Examples of PlaylistException


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

    try {
      this.iTunesCom.setProperty("Shared", shouldBeShared);
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new PlaylistDeletedException(this);
    } catch (ITUNES_E_OBJECTLOCKED e){
      throw new PlaylistException("Sharing is disabled, or is enabled for all playlists (not selected playlists), or playlist can't be shared.");
    }
  }
View Full Code Here

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

   * @throws JitcaException if an error occurs.
   */
  private PlaylistFolder createFolder(IITPlaylist folder) throws JitcaException {
    Playlist newFolder = this.createPlaylist(folder);
    if (!newFolder.isPlaylistFolder()) {
      throw new PlaylistException("Problem occured during creation of new folder \"" + folder.getName() + "\" ");
    }
    return (PlaylistFolderImpl) newFolder;
  }
View Full Code Here

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

   * @throws JitcaException if an error occurs.
   */
  private UserPlaylist createUserPlaylist(IITPlaylist playlist) throws JitcaException {
    Playlist newPlaylist = this.createPlaylist(playlist);
    if (!newPlaylist.isUserPlaylist()) {
      throw new PlaylistException("Problem occured during creation of new playlist \"" + playlist.getName() + "\" ");
    }
    return (UserPlaylistImpl) newPlaylist;
  }
View Full Code Here

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

    try {
      return this.iTunesCom.getPropertyAsLong("Duration");
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new PlaylistDeletedException(this);
    } catch (S_FALSE e) {
      throw new PlaylistException("The playlist does not have a total duration!");
    }
  }
View Full Code Here

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

    try {
      this.iTunesCom.setProperty("Shuffle", shouldShuffle);
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new PlaylistDeletedException(this);
    } catch (S_FALSE e) {
      throw new PlaylistException("This playlist does not support shuffle mode.");
    }
  }
View Full Code Here

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

    try {
      return this.iTunesCom.getPropertyAsDouble("Size");
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new PlaylistDeletedException(this);
    } catch (S_FALSE e) {
      throw new PlaylistException("The playlist does not have a total size.");
    }
  }
View Full Code Here

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

    try {
      this.iTunesCom.setProperty("SongRepeat", repeatMode.getValue());
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new PlaylistDeletedException(this);
    } catch (S_FALSE e) {
      throw new PlaylistException("This playlist does not support repeat mode.");
    }
  }
View Full Code Here

Examples of com.jitcaforwin.basic.exceptions.PlaylistException

    try {
      return this.iTunesCom.getPropertyAsLong("Duration");
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new PlaylistDeletedException(this);
    } catch (S_FALSE e) {
      throw new PlaylistException("The playlist does not have a total duration!");
    }
  }
View Full Code Here

Examples of com.jitcaforwin.basic.exceptions.PlaylistException

    try {
      this.iTunesCom.setProperty("Shuffle", shouldShuffle);
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new PlaylistDeletedException(this);
    } catch (S_FALSE e) {
      throw new PlaylistException("This playlist does not support shuffle mode.");
    }
  }
View Full Code Here

Examples of com.jitcaforwin.basic.exceptions.PlaylistException

    try {
      return this.iTunesCom.getPropertyAsDouble("Size");
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new PlaylistDeletedException(this);
    } catch (S_FALSE e) {
      throw new PlaylistException("The playlist does not have a total size.");
    }
  }
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.