net.sourceforge.obby4j
Class Net6LoginException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by net.sourceforge.obby4j.Net6LoginException
All Implemented Interfaces:
java.io.Serializable

public class Net6LoginException
extends java.lang.Exception

An exception representing a net.sourceforge.obby4j.Protocol.Keyword.net6_login_failed reply from the server.

See Also:
net.sourceforge.obby4j.Protocol.Keyword.net6_login_failed, Serialized Form

Nested Class Summary
static class Net6LoginException.ErrorCode
          All net6 and obby error codes known to this class.
 
Constructor Summary
Net6LoginException(Command command)
          Creates a new exception providing access to the error code sent by the server.
 
Method Summary
 Command getCommand()
           
 Net6LoginException.ErrorCode getErrorCode()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Net6LoginException

public Net6LoginException(Command command)
Creates a new exception providing access to the error code sent by the server.

Parameters:
command - the net6_login_failed command that caused this exception
Method Detail

getCommand

public Command getCommand()
Returns:
Returns the original command that caused this exception.

getErrorCode

public Net6LoginException.ErrorCode getErrorCode()
Returns:
Returns the error code.
See Also:
Net6LoginException.ErrorCode