Package com.jitcaforwin.basic.api.exceptions

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


   * @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

   * @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

    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

    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

    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

    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

TOP

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

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.