Package io.netty.util

Class LeakPresenceDetector.AllocationProhibitedException

  • All Implemented Interfaces:
    java.io.Serializable
    Enclosing class:
    LeakPresenceDetector<T>

    public static final class LeakPresenceDetector.AllocationProhibitedException
    extends java.lang.IllegalStateException
    Special exception type to show that an allocation is prohibited at the moment, for example because the LeakPresenceDetector.ResourceScope is closed, or because the current thread cannot be associated with a particular scope.

    Some code in Netty will treat this exception specially to avoid allocation loops.

    See Also:
    Serialized Form
    • Method Summary

      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

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

      • AllocationProhibitedException

        public AllocationProhibitedException​(java.lang.String s)