Package com.jitcaforwin.extended.api.exceptions

Examples of com.jitcaforwin.extended.api.exceptions.ITObjectDeletedError


    try {
      this.itTrack.setBPM(bpm);
    } catch (TrackLockedException e) {
      throw new TrackReadOnly(this);
    } catch (TrackDeletedException e) {
      throw new ITObjectDeletedError(this);
    }
  }
View Full Code Here


      TrackCollectionImpl tracks = new TrackCollectionImpl(this, addOperationStatus.getTracks());
      Track newTrack = tracks.getFirst();
      this.addTrack(newTrack);
      return newTrack;
    } catch (PlaylistDeletedException e) {
      throw new ITObjectDeletedError(this);
    } catch (PlaylistReadOnlyException e) {
      throw new UserLibraryReadOnly(this);
    }

  }
View Full Code Here

    try {
      for (Track track : tracks) {
        this.tracks.put(track.getITTrack().getTrackDatabaseID(), track);
      }
    } catch (ObjectDeletedException e) {
      throw new ITObjectDeletedError(this);
    }
  }
View Full Code Here

      this.addTracks(newTracks);
      return newTracks;
    } catch (PlaylistReadOnlyException e) {
      throw new UserLibraryReadOnly(this);
    } catch (PlaylistDeletedException e) {
      throw new ITObjectDeletedError(this);
    }

  }
View Full Code Here

      IITURLTrack itURLTrack = this.itLibrary.addURL(url);
      URLTrackImpl urlTrack = URLTrackImpl.create(this, itURLTrack);
      this.addTrack(urlTrack);
      return urlTrack;
    } catch (PlaylistDeletedException e) {
      throw new ITObjectDeletedError(this);
    } catch (PlaylistReadOnlyException e) {
      throw new UserLibraryReadOnly(this);
    }

  }
View Full Code Here

      } else if (searchResult.getCount() == 0) {
        return null; // no track found
      }
      return new TrackCollectionImpl(this, searchResult).getFirst();
    } catch (ObjectDeletedException e) {
      throw new ITObjectDeletedError(this);
    }
  }
View Full Code Here

  public TrackCollection getTracks(String name) {
    try {
      IITTrackCollection searchResult = this.itLibrary.search(name, ITPlaylistSearchField.SongNames());
      return new TrackCollectionImpl(this, searchResult);
    } catch (PlaylistDeletedException e) {
      throw new ITObjectDeletedError(this);
    }

  }
View Full Code Here

  @Override
  public int getSkippedCount() {
    try {
      return (int) this.itTrack.getSkippedCount();
    } catch (TrackDeletedException e) {
      throw new ITObjectDeletedError(this);
    }
  }
View Full Code Here

    try {
      this.itTrack.setSkippedCount(skipped);
    } catch (TrackLockedException e) {
      throw new TrackReadOnly(this);
    } catch (TrackDeletedException e) {
      throw new ITObjectDeletedError(this);
    }
  }
View Full Code Here

  @Override
  public String getLyrics() {
    try {
      return this.itTrack.getLyrics();
    } catch (TrackDeletedException e) {
      throw new ITObjectDeletedError(this);
    }
  }
View Full Code Here

TOP

Related Classes of com.jitcaforwin.extended.api.exceptions.ITObjectDeletedError

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.