org.ipdr.ftp
Class IPDRFTPException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.ipdr.ftp.IPDRFTPException
All Implemented Interfaces:
java.io.Serializable

public class IPDRFTPException
extends java.lang.Exception

This IPDRFTPException class will have all the variables which will be used to store the Fatal Exception information that have occured.

See Also:
Serialized Form

Field Summary
static int IPDR_BRRECORD_NULL
           
static int IPDR_CONTROLFILEDIR_NULL
           
static int IPDR_CONTROLFILENAMEPOLICY_NULL
           
static int IPDR_CONTROLFILEPREFIX_NULL
           
static int IPDR_CONTROLFILESUFFIX_NULL
           
static int IPDR_FILE_NOT_FOUND
           
static int IPDR_GROUPID_NULL
           
static int IPDR_INVALID_VALUE
           
static int IPDR_INVALID_XML
           
static int IPDR_IO_EXCEPTION
           
static int IPDR_LOCAL_DIRECTORY_NOT_FOUND
           
static int IPDR_MALFORMED_URL
           
static int IPDR_NULL_PARAMETER
           
static int IPDR_OK
           
static int IPDR_PARSING_ERROR
           
static int IPDR_PATH_NOT_FILE
           
static int IPDR_READ_PERMISSION_DENIED
           
static int IPDR_SUBSCRIPTION_EXISTS
           
static int IPDR_SUBSCRIPTION_NOT_FOUND
           
static int IPDR_UNKNOWN_EXCEPTION
           
static int IPDR_WRITE_PERMISSION_DENIED
           
 
Constructor Summary
IPDRFTPException(int exceptionCode, java.lang.String exceptionLocation, java.lang.Exception ex)
          Constructor for IPDRFTPException passing exception code, exception location and exception caught.
 
Method Summary
 java.lang.Exception getException()
          Returns the exception caught by the code
 int getExceptionCode()
          Returns the exception code for the exception
 java.lang.String getExceptionLocation()
          Returns the exception location for the exception
 java.lang.String getExceptionMsg(int exceptioncode)
          Returns the exception message
 
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
 

Field Detail

IPDR_OK

public static final int IPDR_OK
See Also:
Constant Field Values

IPDR_UNKNOWN_EXCEPTION

public static final int IPDR_UNKNOWN_EXCEPTION
See Also:
Constant Field Values

IPDR_SUBSCRIPTION_EXISTS

public static final int IPDR_SUBSCRIPTION_EXISTS
See Also:
Constant Field Values

IPDR_SUBSCRIPTION_NOT_FOUND

public static final int IPDR_SUBSCRIPTION_NOT_FOUND
See Also:
Constant Field Values

IPDR_PATH_NOT_FILE

public static final int IPDR_PATH_NOT_FILE
See Also:
Constant Field Values

IPDR_FILE_NOT_FOUND

public static final int IPDR_FILE_NOT_FOUND
See Also:
Constant Field Values

IPDR_READ_PERMISSION_DENIED

public static final int IPDR_READ_PERMISSION_DENIED
See Also:
Constant Field Values

IPDR_IO_EXCEPTION

public static final int IPDR_IO_EXCEPTION
See Also:
Constant Field Values

IPDR_WRITE_PERMISSION_DENIED

public static final int IPDR_WRITE_PERMISSION_DENIED
See Also:
Constant Field Values

IPDR_NULL_PARAMETER

public static final int IPDR_NULL_PARAMETER
See Also:
Constant Field Values

IPDR_INVALID_VALUE

public static final int IPDR_INVALID_VALUE
See Also:
Constant Field Values

IPDR_MALFORMED_URL

public static final int IPDR_MALFORMED_URL
See Also:
Constant Field Values

IPDR_GROUPID_NULL

public static final int IPDR_GROUPID_NULL
See Also:
Constant Field Values

IPDR_CONTROLFILEDIR_NULL

public static final int IPDR_CONTROLFILEDIR_NULL
See Also:
Constant Field Values

IPDR_CONTROLFILEPREFIX_NULL

public static final int IPDR_CONTROLFILEPREFIX_NULL
See Also:
Constant Field Values

IPDR_CONTROLFILENAMEPOLICY_NULL

public static final int IPDR_CONTROLFILENAMEPOLICY_NULL
See Also:
Constant Field Values

IPDR_CONTROLFILESUFFIX_NULL

public static final int IPDR_CONTROLFILESUFFIX_NULL
See Also:
Constant Field Values

IPDR_PARSING_ERROR

public static final int IPDR_PARSING_ERROR
See Also:
Constant Field Values

IPDR_INVALID_XML

public static final int IPDR_INVALID_XML
See Also:
Constant Field Values

IPDR_LOCAL_DIRECTORY_NOT_FOUND

public static final int IPDR_LOCAL_DIRECTORY_NOT_FOUND
See Also:
Constant Field Values

IPDR_BRRECORD_NULL

public static final int IPDR_BRRECORD_NULL
See Also:
Constant Field Values
Constructor Detail

IPDRFTPException

public IPDRFTPException(int exceptionCode,
                        java.lang.String exceptionLocation,
                        java.lang.Exception ex)
Constructor for IPDRFTPException passing exception code, exception location and exception caught.

Parameters:
exceptionCode - Exception code for the exception
exceptionLocation - Location for the exception caused
ex - Exception caught
Method Detail

getExceptionCode

public int getExceptionCode()
Returns the exception code for the exception

Returns:
int indicating the exception code

getExceptionLocation

public java.lang.String getExceptionLocation()
Returns the exception location for the exception

Returns:
String indicating the exception location

getException

public java.lang.Exception getException()
Returns the exception caught by the code

Returns:
Exception An object of exception class indicating the exception caught

getExceptionMsg

public java.lang.String getExceptionMsg(int exceptioncode)
Returns the exception message

Returns:
String Exception message