Class ThrowableProxyHelper


  • @Deprecated
    final class ThrowableProxyHelper
    extends java.lang.Object
    Deprecated.
    ThrowableProxyHelper provides utilities required to initialize a new ThrowableProxy instance.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      (package private) static class  ThrowableProxyHelper.CacheEntry
      Deprecated.
      Cached StackTracePackageElement and ClassLoader.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private ThrowableProxyHelper()
      Deprecated.
       
    • Method Summary

      All Methods Static Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      private static java.lang.Class<?> loadClass​(java.lang.ClassLoader lastLoader, java.lang.String className)
      Deprecated.
      Loads classes not located via Reflection.getCallerClass.
      private static java.lang.Class<?> loadClass​(java.lang.String className)
      Deprecated.
       
      private static ThrowableProxyHelper.CacheEntry toCacheEntry​(java.lang.Class<?> callerClass, boolean exact)
      Deprecated.
      Construct the CacheEntry from the Class's information.
      (package private) static ExtendedStackTraceElement[] toExtendedStackTrace​(ThrowableProxy src, java.util.Deque<java.lang.Class<?>> stack, java.util.Map<java.lang.String,​ThrowableProxyHelper.CacheEntry> map, java.lang.StackTraceElement[] rootTrace, java.lang.StackTraceElement[] stackTrace)
      Deprecated.
      Resolve all the stack entries in this stack trace that are not common with the parent.
      (package private) static ThrowableProxy[] toSuppressedProxies​(java.lang.Throwable thrown, java.util.Set<java.lang.Throwable> suppressedVisited)
      Deprecated.
       
      • Methods inherited from class java.lang.Object

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

      • ThrowableProxyHelper

        private ThrowableProxyHelper()
        Deprecated.
    • Method Detail

      • toExtendedStackTrace

        static ExtendedStackTraceElement[] toExtendedStackTrace​(ThrowableProxy src,
                                                                java.util.Deque<java.lang.Class<?>> stack,
                                                                java.util.Map<java.lang.String,​ThrowableProxyHelper.CacheEntry> map,
                                                                java.lang.StackTraceElement[] rootTrace,
                                                                java.lang.StackTraceElement[] stackTrace)
        Deprecated.
        Resolve all the stack entries in this stack trace that are not common with the parent.
        Parameters:
        src - Instance for which to build an extended stack trace.
        stack - The callers Class stack.
        map - The cache of CacheEntry objects.
        rootTrace - The first stack trace resolve or null.
        stackTrace - The stack trace being resolved.
        Returns:
        The StackTracePackageElement array.
      • toSuppressedProxies

        static ThrowableProxy[] toSuppressedProxies​(java.lang.Throwable thrown,
                                                    java.util.Set<java.lang.Throwable> suppressedVisited)
        Deprecated.
      • toCacheEntry

        private static ThrowableProxyHelper.CacheEntry toCacheEntry​(java.lang.Class<?> callerClass,
                                                                    boolean exact)
        Deprecated.
        Construct the CacheEntry from the Class's information.
        Parameters:
        callerClass - The Class.
        exact - True if the class was obtained via Reflection.getCallerClass.
        Returns:
        The CacheEntry.
      • loadClass

        private static java.lang.Class<?> loadClass​(java.lang.ClassLoader lastLoader,
                                                    java.lang.String className)
        Deprecated.
        Loads classes not located via Reflection.getCallerClass.
        Parameters:
        lastLoader - The ClassLoader that loaded the Class that called this Class.
        className - The name of the Class.
        Returns:
        The Class object for the Class or null if it could not be located.
      • loadClass

        private static java.lang.Class<?> loadClass​(java.lang.String className)
        Deprecated.