Class Correspondence.StoredException

  • Enclosing class:
    Correspondence<A,​E>

    private static class Correspondence.StoredException
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static com.google.common.base.Joiner ARGUMENT_JOINER  
      private java.lang.Exception exception  
      private java.util.List<java.lang.Object> methodArguments  
      private java.lang.String methodName  
    • Constructor Summary

      Constructors 
      Constructor Description
      StoredException​(java.lang.Exception exception, java.lang.String methodName, java.util.List<java.lang.Object> methodArguments)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private java.lang.String describe()
      Returns a String describing the exception stored.
      • Methods inherited from class java.lang.Object

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

      • ARGUMENT_JOINER

        private static final com.google.common.base.Joiner ARGUMENT_JOINER
      • exception

        private final java.lang.Exception exception
      • methodName

        private final java.lang.String methodName
      • methodArguments

        private final java.util.List<java.lang.Object> methodArguments
    • Constructor Detail

      • StoredException

        StoredException​(java.lang.Exception exception,
                        java.lang.String methodName,
                        java.util.List<java.lang.Object> methodArguments)
    • Method Detail

      • describe

        private java.lang.String describe()
        Returns a String describing the exception stored. This includes a stack trace (except under j2cl, where this is not available). It also has a separator at the end, so that when this appears at the end of an AssertionError message, the stack trace of the stored exception is distinguishable from the stack trace of the AssertionError.