Package com.yahoo.vespa.http.client.core
Class Exceptions
- java.lang.Object
-
- com.yahoo.vespa.http.client.core.Exceptions
-
public abstract class Exceptions extends Object
Helper methods for handling exceptions- Author:
- bratseth
-
-
Constructor Summary
Constructors Constructor Description Exceptions()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
toMessageString(Throwable t)
Returns a use friendly error message string which includes information from all nested exceptions.
-
-
-
Method Detail
-
toMessageString
public static String toMessageString(Throwable t)
Returns a use friendly error message string which includes information from all nested exceptions.
The form of this string is
e.getMessage(): e.getCause().getMessage(): e.getCause().getCause().getMessage()...
In addition, some heuristics are used to clean up common cases where exception nesting causes bad messages.
-
-