Cisco Systems, Inc.

com.pcube.apps.engage
Class ConnectionFailedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.pcube.apps.engage.ConnectionFailedException
All Implemented Interfaces:
java.io.Serializable

public class ConnectionFailedException
extends java.lang.Exception

An exception thrown when connecting to the SE device fails. The exception has an error type which reveals the reason the error occured.

See Also:
Serialized Form

Field Summary
static byte GENERAL_CONNECTION_ERROR
          Connection to the SE failed due to a general error.
static byte ILLEGAL_PASSWORD_CONNECTION_ERROR
          Connection to the SE failed due to an erroneous password.
static byte INCOMPATIBLE_VERSIONS_ERROR
          client and server versions are incompatible
static byte INVALID_USERNAME_PASSWORD_ERROR
          username password is unauthenticated
static byte SERVER_CONNECTION_ERROR
          Connection to the SE failed due to failure in the Server's side.
 
Constructor Summary
ConnectionFailedException()
          ConnectionFailedException Constructor.
ConnectionFailedException(java.lang.String msg)
          ConnectionFailedException Constructor.
ConnectionFailedException(java.lang.String msg, byte errorType)
          ConnectionFailedException Constructor.
 
Method Summary
 byte getErrorType()
          Gets this exception's error type.
 
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
 

Field Detail

GENERAL_CONNECTION_ERROR

public static final byte GENERAL_CONNECTION_ERROR
Connection to the SE failed due to a general error.

See Also:
Constant Field Values

SERVER_CONNECTION_ERROR

public static final byte SERVER_CONNECTION_ERROR
Connection to the SE failed due to failure in the Server's side.

See Also:
Constant Field Values

ILLEGAL_PASSWORD_CONNECTION_ERROR

public static final byte ILLEGAL_PASSWORD_CONNECTION_ERROR
Connection to the SE failed due to an erroneous password.

See Also:
Constant Field Values

INCOMPATIBLE_VERSIONS_ERROR

public static final byte INCOMPATIBLE_VERSIONS_ERROR
client and server versions are incompatible

See Also:
Constant Field Values

INVALID_USERNAME_PASSWORD_ERROR

public static final byte INVALID_USERNAME_PASSWORD_ERROR
username password is unauthenticated

See Also:
Constant Field Values
Constructor Detail

ConnectionFailedException

public ConnectionFailedException()
ConnectionFailedException Constructor.


ConnectionFailedException

public ConnectionFailedException(java.lang.String msg)
ConnectionFailedException Constructor.

Parameters:
msg - this exception's error message

ConnectionFailedException

public ConnectionFailedException(java.lang.String msg,
                                 byte errorType)
ConnectionFailedException Constructor.

Parameters:
msg - this exception's error message
errorType - this exceptions type
See Also:
GENERAL_CONNECTION_ERROR, SERVER_CONNECTION_ERROR, ILLEGAL_PASSWORD_CONNECTION_ERROR
Method Detail

getErrorType

public byte getErrorType()
Gets this exception's error type.

Returns:
this exception's error type
See Also:
GENERAL_CONNECTION_ERROR, SERVER_CONNECTION_ERROR, ILLEGAL_PASSWORD_CONNECTION_ERROR

Cisco Systems, Inc.

Copyright © 2013 Cisco Systems, Inc. Confidential.