Package com.jitcaforwin.basic.exceptions

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


    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

    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

TOP

Related Classes of com.jitcaforwin.basic.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.