Class GlideException
- All Implemented Interfaces:
Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionGlideException(String message) GlideException(String detailMessage, Throwable cause) GlideException(String detailMessage, List<Throwable> causes) -
Method Summary
Modifier and TypeMethodDescriptionReturns a list of causes that are immediate children of this exception.Returns anExceptionwith a stack trace that includes where the request originated (if previously set viasetOrigin(Exception))Returns the list of root causes that are the leaf nodes of all children of this exception.voidlogRootCauses(String tag) Logs all root causes using the given tag.voidvoidvoidvoidSets a stack trace that includes where the request originated.Methods inherited from class java.lang.Throwable
addSuppressed, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, setStackTrace, toString
-
Constructor Details
-
GlideException
-
GlideException
-
GlideException
-
-
Method Details
-
setOrigin
Sets a stack trace that includes where the request originated.This is an experimental API that may be removed in the future.
-
getOrigin
Returns anExceptionwith a stack trace that includes where the request originated (if previously set viasetOrigin(Exception))This is an experimental API that may be removed in the future.
-
fillInStackTrace
- Overrides:
fillInStackTracein classThrowable
-
getCauses
Returns a list of causes that are immediate children of this exception.Causes may or may not be
GlideExceptions. Causes may also not be root causes, and in turn my have been caused by other failures.- See Also:
-
getRootCauses
Returns the list of root causes that are the leaf nodes of all children of this exception.Use this method to do things like look for http exceptions that indicate the load may have failed due to an error that can be retried. Keep in mind that because Glide may attempt to load a given model using multiple different pathways, there may be multiple related or unrelated reasons for a load to fail.
-
logRootCauses
Logs all root causes using the given tag.Each root cause is logged separately to avoid throttling.
printStackTrace()will provide a more succinct overview of why the exception occurred, although it does not include complete stack traces. -
printStackTrace
public void printStackTrace()- Overrides:
printStackTracein classThrowable
-
printStackTrace
- Overrides:
printStackTracein classThrowable
-
printStackTrace
- Overrides:
printStackTracein classThrowable
-
getMessage
- Overrides:
getMessagein classThrowable
-