![JAR search and dependency download from the Maven repository](/logo.png)
com.bumptech.glide.load.engine.ErrorWrappingGlideException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of glide Show documentation
Show all versions of glide Show documentation
A fast and efficient image loading library for Android focused on smooth scrolling.
package com.bumptech.glide.load.engine;
/**
* An exception class used for wrapping and distinguishing errors such as {@link OutOfMemoryError}.
*/
public class ErrorWrappingGlideException extends Exception {
public ErrorWrappingGlideException(Error error) {
super(error);
if (error == null) {
throw new NullPointerException("The causing error must not be null");
}
}
@Override
public Error getCause() {
// cast is safe because constructor ensures there must be a cause, and it must be an Error
return (Error) super.getCause();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy