Class Exceptions


  • public abstract class Exceptions
    extends java.lang.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 java.lang.String toMessageString​(java.lang.Throwable t)
      Returns a use friendly error message string which includes information from all nested exceptions.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Exceptions

        public Exceptions()
    • Method Detail

      • toMessageString

        public static java.lang.String toMessageString​(java.lang.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.