Class AcquirableOwnershipException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
net.minestom.server.thread.AcquirableOwnershipException
- All Implemented Interfaces:
Serializable
Exception thrown when an acquirable element is accessed without proper ownership.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAcquirableOwnershipException(Thread initThread, @Nullable Thread assignedThread, Object element) -
Method Summary
Modifier and TypeMethodDescriptionThe thread to which the acquirable element is assigned.element()The acquirable element that caused the ownership failure.The thread that initialized the acquirable element.Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
AcquirableOwnershipException
-
-
Method Details
-
initThread
The thread that initialized the acquirable element. -
assignedThread
-
element
The acquirable element that caused the ownership failure.
-