Raise exception on login disconnect instead of silently stopping.
This commit is contained in:
1 parent
db714f9490
commit
c01f194d06
2 files changed
+60
-22
No files matched your search
+26
-2
@@ -49,5 +49,29 @@ class YggdrasilError(Exception):
|
||||
"""
|
||||
|
||||
|
||||
class VersionMismatch(Exception):
|
||||
pass
|
||||
class ConnectionFailure(Exception):
|
||||
"""Raised by 'minecraft.networking.Connection' when a connection attempt
|
||||
fails.
|
||||
"""
|
||||
|
||||
|
||||
class VersionMismatch(ConnectionFailure):
|
||||
"""Raised by 'minecraft.networking.Connection' when connection is not
|
||||
possible due to a difference between the server's and client's
|
||||
supported protocol versions.
|
||||
"""
|
||||
|
||||
|
||||
class LoginDisconnect(ConnectionFailure):
|
||||
"""Raised by 'minecraft.networking.Connection' when a connection attempt
|
||||
is terminated by the server sending a Disconnect packet, during login,
|
||||
with an unknown message format.
|
||||
"""
|
||||
|
||||
|
||||
class IgnorePacket(Exception):
|
||||
"""This exception may be raised from within a packet handler, such as
|
||||
`PacketReactor.react' or a packet listener added with
|
||||
`Connection.register_packet_listener', to stop any subsequent handlers
|
||||
from being called on that particular packet.
|
||||
"""
|
||||
Reference in new issue
Block a user