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 Details

    • Exceptions

      public Exceptions()
  • Method Details

    • 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.