Package com.jitcaforwin.main.exceptions.runtime

Examples of com.jitcaforwin.main.exceptions.runtime.IPodRemoved


   */
  public void update(){
    try {
      this.itSource.updateIPod();
    } catch (SourceDeletedException e) {
      throw new IPodRemoved("IPod could not be updated, because IPod has been removed!");
    }
  }
View Full Code Here


   */
  public void eject() {
    try {
      this.itSource.ejectIPod();
    } catch (SourceDeletedException e) {
      throw new IPodRemoved();
    }
  }
View Full Code Here

   */
  public String getSoftwareVersion() {
    try {
      return this.itSource.getSoftwareVersion();
    } catch (SourceDeletedException e) {
      throw new IPodRemoved();
    }

  }
View Full Code Here

   */
  public String getName() {
    try {
      return this.itSource.getName();
    } catch (ObjectDeletedException e) {
      throw new IPodRemoved();
    }
  }
View Full Code Here

   */
  public void setName(String name) throws IPodReadOnly {
    try {
      this.itSource.setName(name);
    } catch (ObjectDeletedException e) {
      throw new IPodRemoved();
    } catch (ObjectLockedException e) {
      throw new IPodReadOnly(this);
    }
  }
View Full Code Here

   */
  public double getCapacity(){
    try {
      return this.itSource.getCapacity();
    } catch (SourceDeletedException e) {
      throw new IPodRemoved();
    }
  }
View Full Code Here

   */
  public double getFreeSpace(){
    try {
      return this.itSource.getFreeSpace();
    } catch (SourceDeletedException e) {
      throw new IPodRemoved();
    }
  }
View Full Code Here

   */
  public PlaylistCollection getPlaylists(){
    try {
      return new PlaylistCollection(this, this.itSource.getPlaylists());
    } catch (SourceDeletedException e) {
      throw new IPodRemoved();
    }
  }
View Full Code Here

   */
  public void update(){
    try {
      this.itSource.updateIPod();
    } catch (SourceDeletedException e) {
      throw new IPodRemoved("IPod could not be updated, because IPod has been removed!");
    }
  }
View Full Code Here

   */
  public void eject() {
    try {
      this.itSource.ejectIPod();
    } catch (SourceDeletedException e) {
      throw new IPodRemoved();
    }
  }
View Full Code Here

TOP

Related Classes of com.jitcaforwin.main.exceptions.runtime.IPodRemoved

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.