public class FTPException
extends java.lang.Exception
Modifier and Type | Field and Description |
---|---|
protected java.lang.Exception |
cause |
protected int |
code |
private static java.lang.String[] |
codeExplained |
protected java.lang.String |
customMessage |
static int |
UNSPECIFIED |
Constructor and Description |
---|
FTPException(int code) |
FTPException(int code,
java.lang.String message) |
Modifier and Type | Method and Description |
---|---|
int |
getCode() |
java.lang.String |
getCodeExplanation(int code) |
java.lang.String |
getCustomMessage() |
java.lang.String |
getMessage() |
java.lang.Exception |
getRootCause()
Retrieve the nested lower layer exception.
|
void |
printStackTrace() |
void |
printStackTrace(java.io.PrintStream ps) |
void |
printStackTrace(java.io.PrintWriter pw) |
void |
setCode(int c) |
void |
setCustomMessage(java.lang.String m) |
void |
setRootCause(java.lang.Exception c) |
java.lang.String |
toString() |
public static final int UNSPECIFIED
protected int code
private static java.lang.String[] codeExplained
protected java.lang.Exception cause
protected java.lang.String customMessage
public FTPException(int code, java.lang.String message)
public FTPException(int code)
public java.lang.String getCodeExplanation(int code)
public void setRootCause(java.lang.Exception c)
public java.lang.Exception getRootCause()
public void setCode(int c)
public int getCode()
public void setCustomMessage(java.lang.String m)
public java.lang.String getCustomMessage()
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public java.lang.String toString()
toString
in class java.lang.Throwable
public void printStackTrace()
printStackTrace
in class java.lang.Throwable
public void printStackTrace(java.io.PrintStream ps)
printStackTrace
in class java.lang.Throwable
public void printStackTrace(java.io.PrintWriter pw)
printStackTrace
in class java.lang.Throwable