Class AcquirableOwnershipException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
net.minestom.server.thread.AcquirableOwnershipException
All Implemented Interfaces:
Serializable

public final class AcquirableOwnershipException extends RuntimeException
Exception thrown when an acquirable element is accessed without proper ownership.
See Also:
  • Constructor Details

    • AcquirableOwnershipException

      @Internal public AcquirableOwnershipException(Thread initThread, @Nullable @Nullable Thread assignedThread, Object element)
  • Method Details

    • initThread

      public Thread initThread()
      The thread that initialized the acquirable element.
    • assignedThread

      @Nullable public @Nullable Thread assignedThread()
      The thread to which the acquirable element is assigned. May be null if the element is not yet initialized.
    • element

      public Object element()
      The acquirable element that caused the ownership failure.