@Deprecated public abstract class RoundJoinException extends Throwable implements Component<Round>
Round
.Modifier and Type | Class and Description |
---|---|
static class |
RoundJoinException.Reason
Deprecated.
Represents a specific reason for a player failing to join a
Round . |
Modifier | Constructor and Description |
---|---|
protected |
RoundJoinException(UUID player,
Round round,
RoundJoinException.Reason reason,
String message)
Deprecated.
Creates a new
RoundJoinException with the given parameters. |
protected |
RoundJoinException(UUID player,
Round round,
Throwable cause)
Deprecated.
Creates a new
RoundJoinException with
RoundJoinException.Reason.INTERNAL_ERROR and the given parameters. |
protected |
RoundJoinException(UUID player,
Round round,
Throwable cause,
String message)
Deprecated.
Creates a new
RoundJoinException with
RoundJoinException.Reason.INTERNAL_ERROR and the given parameters. |
Modifier and Type | Method and Description |
---|---|
Round |
getOwner()
Deprecated.
Gets the
Round owning this object. |
UUID |
getPlayer()
Deprecated.
Gets the
UUID of the player who failed to join. |
RoundJoinException.Reason |
getReason()
Deprecated.
Gets the
RoundJoinException.Reason of the failure to join. |
Round |
getRound()
Deprecated.
Gets the
Round this RoundJoinException is owned by. |
protected void |
setFields(UUID player,
Round round,
RoundJoinException.Reason reason)
Deprecated.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
protected RoundJoinException(UUID player, Round round, Throwable cause, String message)
RoundJoinException
with
RoundJoinException.Reason.INTERNAL_ERROR
and the given parameters.protected RoundJoinException(UUID player, Round round, Throwable cause)
RoundJoinException
with
RoundJoinException.Reason.INTERNAL_ERROR
and the given parameters.protected RoundJoinException(UUID player, Round round, RoundJoinException.Reason reason, String message)
RoundJoinException
with the given parameters.player
- The UUID
of the player involved in this exceptionround
- The Round
involved in this exceptionreason
- The RoundJoinException.Reason
of the failure to joinmessage
- The exception messagepublic Round getRound() throws OrphanedComponentException
Round
this RoundJoinException
is owned byOrphanedComponentException
- If this object is orphaned (see
Component
for details)protected void setFields(UUID player, Round round, RoundJoinException.Reason reason)
public UUID getPlayer()
UUID
of the player who failed to join.UUID
of the player who failed to join.public RoundJoinException.Reason getReason()
RoundJoinException.Reason
of the failure to join.RoundJoinException.Reason
of the failure to join