Examples of JitcaUnexpectedError


Examples of com.jitcaforwin.main.exceptions.JitcaUnexpectedError

      for (int i = 1; i < itTrackCollection.getCount() + 1; i++) {
        Track track = this.trackFactory.getTrack(itTrackCollection.itemByPlayOrder(i));
        this.add(track, i - 1);
      }
    } catch (PlaylistDeletedException e) {
      throw new JitcaUnexpectedError();
    } catch (ObjectDeletedException e) {
      throw new JitcaUnexpectedError();
    }
  }
View Full Code Here

Examples of com.jitcaforwin.main.exceptions.JitcaUnexpectedError

    this.eventController.addListener(listener);
  }

  public void removeEventListener(IJitcaEventListener listener) {
    if (this.eventController == null) {
      throw new JitcaUnexpectedError("Event Controller not initialized, but removing of listener is requested!");
    }
    this.eventController.removeListener(listener);
  }
View Full Code Here

Examples of com.jitcaforwin.main.exceptions.JitcaUnexpectedError

      for (int i = 1; i < itPlaylists.getCount() + 1; i++) {
        Playlist playlist = this.source.getPlaylistFactory().getPlaylist(itPlaylists.item(i));
        this.playlists.put(playlist.getName(), playlist);
      }
    } catch (SourceDeletedException e) {
      throw new JitcaUnexpectedError();
    } catch (ObjectDeletedException e) {
      throw new JitcaUnexpectedError();
    }
  }
View Full Code Here

Examples of com.jitcaforwin.main.exceptions.JitcaUnexpectedError

   * @param source Source which is the basis for the created group.
   * @return An instance of {@link GroupArtist}.
   */
  public static GroupArtist createGroup(String names, Source source){
    if (!isGroup(names)){
      throw new JitcaUnexpectedError("It was tried to build a group based on an artist's name which is not a group!");
    }
   
    GroupArtist group = new GroupArtistImpl(names, source);
   
    StringBuffer artist = new StringBuffer();
View Full Code Here

Examples of com.jitcaforwin.main.exceptions.JitcaUnexpectedError

    this.eventController.addListener(listener);
  }

  public void removeEventListener(IJitcaEventListener listener) {
    if (this.eventController == null) {
      throw new JitcaUnexpectedError("Event Controller not initialized, but removing of listener is requested!");
    }
    this.eventController.removeListener(listener);
  }
View Full Code Here

Examples of com.jitcaforwin.main.exceptions.JitcaUnexpectedError

      for (int i = 1; i < itTrackCollection.getCount() + 1; i++) {
        Track track = this.trackFactory.getTrack(itTrackCollection.itemByPlayOrder(i));
        this.add(track, i - 1);
      }
    } catch (PlaylistDeletedException e) {
      throw new JitcaUnexpectedError();
    } catch (ObjectDeletedException e) {
      throw new JitcaUnexpectedError();
    }
  }
View Full Code Here

Examples of com.jitcaforwin.main.exceptions.JitcaUnexpectedError

   * @param source Source which is the basis for the created group.
   * @return An instance of {@link GroupArtist}.
   */
  public static GroupArtist createGroup(String names, Source source){
    if (!isGroup(names)){
      throw new JitcaUnexpectedError("It was tried to build a group based on an artist's name which is not a group!");
    }
   
    GroupArtist group = new GroupArtistImpl(names, source);
   
    StringBuffer artist = new StringBuffer();
View Full Code Here

Examples of com.jitcaforwin.main.exceptions.JitcaUnexpectedError

      for (int i = 1; i < itPlaylists.getCount() + 1; i++) {
        Playlist playlist = this.source.getPlaylistFactory().getPlaylist(itPlaylists.item(i));
        this.playlists.put(playlist.getName(), playlist);
      }
    } catch (SourceDeletedException e) {
      throw new JitcaUnexpectedError();
    } catch (ObjectDeletedException e) {
      throw new JitcaUnexpectedError();
    }
  }
View Full Code Here

Examples of com.jitcaforwin.main.exceptions.JitcaUnexpectedError

      for (int i = 1; i < itTrackCollection.getCount() + 1; i++) {
        Track track = this.trackFactory.getTrack(itTrackCollection.itemByPlayOrder(i));
        this.add(track, i - 1);
      }
    } catch (PlaylistDeletedException e) {
      throw new JitcaUnexpectedError();
    } catch (ObjectDeletedException e) {
      throw new JitcaUnexpectedError();
    }
  }
View Full Code Here

Examples of com.jitcaforwin.main.exceptions.JitcaUnexpectedError

      return new ITQuittingEventHandler(iTunes,
          (IiTunesQuittingEventsListener) listener);
    }

    else {
      throw new JitcaUnexpectedError("EventListener "
          + listener.getClass() + " not supported!");
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.