Package com.jitcaforwin.basic.exceptions

Examples of com.jitcaforwin.basic.exceptions.TrackDeletedException


  public void setStart(long start) throws TrackDeletedException, TrackLockedException {
    try {
      this.iTunesCom.setProperty("Start", start);
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new TrackDeletedException(this);
    } catch (ITUNES_E_OBJECTLOCKED e) {
      throw new TrackLockedException(this);
    }
  }
View Full Code Here


  public String getTime() throws TrackDeletedException {
    try {
      return this.iTunesCom.getPropertyAsString("Time");
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new TrackDeletedException(this);
    }
  }
View Full Code Here

  public long getTrackCount() throws TrackDeletedException {
    try {
      return this.iTunesCom.getPropertyAsLong("TrackCount");
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new TrackDeletedException(this);
    }
  }
View Full Code Here

  public void setTrackCount(long trackCount) throws TrackDeletedException, TrackLockedException {
    try {
      this.iTunesCom.setProperty("TrackCount", trackCount);
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new TrackDeletedException(this);
    } catch (ITUNES_E_OBJECTLOCKED e) {
      throw new TrackLockedException(this);
    }
  }
View Full Code Here

  public long getTrackNumber() throws TrackDeletedException {
    try {
      return this.iTunesCom.getPropertyAsLong("TrackNumber");
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new TrackDeletedException(this);
    }
  }
View Full Code Here

  public void setTrackNumber(long trackNumber) throws TrackDeletedException, TrackLockedException {
    try {
      this.iTunesCom.setProperty("TrackNumber", trackNumber);
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new TrackDeletedException(this);
    } catch (ITUNES_E_OBJECTLOCKED e) {
      throw new TrackLockedException(this);
    }
  }
View Full Code Here

  public long getVolumeAdjustment() throws TrackDeletedException {
    try {
      return this.iTunesCom.getPropertyAsLong("VolumeAdjustment");
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new TrackDeletedException(this);
    }
  }
View Full Code Here

      if (volumeAdjustment < -100 || volumeAdjustment > 100) {
        throw new InvalidSoundVolumeAdjustmentException();
      }
      this.iTunesCom.setProperty("VolumeAdjustment", volumeAdjustment);
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new TrackDeletedException(this);
    } catch (ITUNES_E_OBJECTLOCKED e) {
      throw new TrackLockedException(this);
    }
  }
View Full Code Here

  public long getYear() throws TrackDeletedException {
    try {
      return this.iTunesCom.getPropertyAsLong("Year");
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new TrackDeletedException(this);
    }
  }
View Full Code Here

  public void setYear(long year) throws TrackDeletedException, TrackLockedException {
    try {
      this.iTunesCom.setProperty("Year", year);
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new TrackDeletedException(this);
    } catch (ITUNES_E_OBJECTLOCKED e) {
      throw new TrackLockedException(this);
    }
  }
View Full Code Here

TOP

Related Classes of com.jitcaforwin.basic.exceptions.TrackDeletedException

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.