com.perforce.p4java.exception
Class ConnectionNotConnectedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.perforce.p4java.exception.P4JavaException
              extended by com.perforce.p4java.exception.ConnectionException
                  extended by com.perforce.p4java.exception.ConnectionNotConnectedException
All Implemented Interfaces:
Serializable

public class ConnectionNotConnectedException
extends ConnectionException

Special subclass of ConnectionException to signal the case of attempting to issue a Perforce server command with an IServer that hasn't been explicitly connected to that Perforce server.

Usually, if you get one of these, you've either forgotten to connect the server, or the server's become disconnected on its own, typically as a result of the underlying protocol timing out or the Perforce server at the other end going away, etc.

See Also:
Serialized Form

Constructor Summary
ConnectionNotConnectedException()
           
ConnectionNotConnectedException(String message)
           
ConnectionNotConnectedException(String message, Throwable cause)
           
ConnectionNotConnectedException(Throwable cause)
           
 
Method Summary
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConnectionNotConnectedException

public ConnectionNotConnectedException()

ConnectionNotConnectedException

public ConnectionNotConnectedException(String message,
                                       Throwable cause)

ConnectionNotConnectedException

public ConnectionNotConnectedException(String message)

ConnectionNotConnectedException

public ConnectionNotConnectedException(Throwable cause)


Copyright © 2015 Perforce Software. All Rights Reserved.