Package com.jitcaforwin.main.exceptions

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


    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

      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

   * @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

    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

      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

   * @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

      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

      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

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

    else {
      throw new JitcaUnexpectedError("EventListener "
          + listener.getClass() + " not supported!");
    }
  }
View Full Code Here

TOP

Related Classes of com.jitcaforwin.main.exceptions.JitcaUnexpectedError

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.