Class FTPClientException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.deltava.util.ControllerException
org.deltava.dao.DAOException
org.deltava.util.ftp.FTPClientException
- All Implemented Interfaces:
Serializable
A class to treat FTP exceptions as a DAO exception.
- Since:
- 1.0
- Version:
- 11.2
- Author:
- Luke
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFTPClientException
(String msg) Creates a new FTP exception with a message.FTPClientException
(Throwable t, boolean dumpStack) Creates a new FTP exception from another exception. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns whether the exception handler should display the stack trace.int
Returns the FTP error code.Methods inherited from class org.deltava.util.ControllerException
getForwardURL, getLogStackDump, getStatusCode, isSuppressed, isWarning, setForwardURL, setLogStackDump, setStatusCode, setSuppressed, setWarning
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
FTPClientException
FTPClientException(Throwable t, boolean dumpStack) Creates a new FTP exception from another exception.- Parameters:
t
- the root exceptiondumpStack
- TRUE to dump the stack trace, otherwise FALSE
-
FTPClientException
FTPClientException(String msg) Creates a new FTP exception with a message.- Parameters:
msg
- the exception message
-
-
Method Details
-
getResultCode
public int getResultCode()Returns the FTP error code.- Returns:
- the error code
-
getDumpStack
public boolean getDumpStack()Returns whether the exception handler should display the stack trace.- Returns:
- TRUE to display the stack trace, otherwise FALSE
-