title: Glide: onError Callback
body: <p>I'm switching from Picasso to Glide. Everything works fine except I cannot find a method to get an error callback. I want to retrieve a Bitmap, pass it on and generate an Android Palette from it. Also, while an errorDrawable can be provided to a load call, it won't show up in <code>onResourceReady</code> when using a <code>SimpleTarget</code>.</p>
  
  <p>In Picasso I did it like this: </p>
  
  <pre><code>target = new Target() {
              @Override
              public void onBitmapLoaded(Bitmap bitmap, Picasso.LoadedFrom from) {
                  //handle Bitmap, generate Palette etc. 
              }
  
              @Override
              public void onBitmapFailed(final Drawable errorDrawable) {
                  // use errorDrawable to generate Palette
              }
  
              @Override
              public void onPrepareLoad(final Drawable placeHolderDrawable) {
              }
          };
          int width =  (int) DisplayUnitsConverter.dpToPx(this, 120);
          int height =  (int) DisplayUnitsConverter.dpToPx(this, 40);
          Picasso.with(this).load(config.getPathToLogo()).resize(width, height).error(errorDrawableId).into(target);
  </code></pre>
  
  <p>My glide code looks like this: </p>
  
  <pre><code>Glide.with(context)
      .load(config.getPathToLogo())
      .asBitmap()
      .into(new SimpleTarget&lt;Bitmap&gt;(width, height) {
           @Override
           public void onResourceReady(Bitmap resource, GlideAnimation glideAnimation) {
               //handle Bitmap, generate Palette etc. 
           }
      });
  </code></pre>
  
  <p>Thanks.</p>