Package se.despotify.exceptions

Examples of se.despotify.exceptions.ReceivedEmptyResponseException


    /* Get data and inflate it. */
    data = callback.getData("get playlist response");
    connection.close();
   
    if (data.length == 0) {
      throw new ReceivedEmptyResponseException();
    }

    /* Load XML. */
    String xml = "<?xml version=\"1.0\" encoding=\"utf-8\" ?><playlist>" +
        new String(data, Charset.forName("UTF-8")) +
View Full Code Here


      if ("Various Artists".equals(this.artist.getName())) {
        artist = this.artist;
        artist.setLoaded(now);
        // good stuff // todo figure this out, various artists does not seem to get loaded> 19334eaffa3f4f2282e251e36611e26f
      } else {
        throw new ReceivedEmptyResponseException("This might be a real problem while communicting with Spotify, it can also be that you tried to load an artist representing 'Various Artists' Spotify will return an empty result. The official client does not seem to ever load such an artist.\n"+this.artist.getId());
      }
    } else {

//      timeUnmarshall.start();
View Full Code Here

    if (data.length == 0) {
      if ("Various Artists".equals(artist.getName())) {
        artist.setLoaded(now);
        // good stuff // todo figure this out, various artists does not seem to get loaded> 19334eaffa3f4f2282e251e36611e26f
      } else {
        throw new ReceivedEmptyResponseException("This might be a real problem while communicting with Spotify, it can also be that you tried to load an artist representing 'Various Artists' Spotify will return an empty result. The official client does not seem to ever load such an artist.");
      }
    } else {

      /* Cut off that last 0xFF byte... */
      data = Arrays.copyOfRange(data, 0, data.length - 1);
View Full Code Here

    /* Get data and inflate it. */
    data = callback.getData("get playlist response");
    connection.close();
   
    if (data.length == 0) {
      throw new ReceivedEmptyResponseException();
    }

    /* Load XML. */
    String xml = "<?xml version=\"1.0\" encoding=\"utf-8\" ?><playlist>" +
        new String(data, Charset.forName("UTF-8")) +
View Full Code Here

TOP

Related Classes of se.despotify.exceptions.ReceivedEmptyResponseException

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.