Class Exceptions


  • public abstract class Exceptions
    extends Object
    Helper methods for handling exceptions
    Author:
    bratseth
    • Constructor Detail

      • Exceptions

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