public class FTPException extends Exception
Modifier and Type | Field and Description |
---|---|
protected Exception |
cause |
protected int |
code |
protected String |
customMessage |
static int |
UNSPECIFIED |
Constructor and Description |
---|
FTPException(int code) |
FTPException(int code,
String message) |
Modifier and Type | Method and Description |
---|---|
int |
getCode() |
String |
getCodeExplanation(int code) |
String |
getCustomMessage() |
String |
getMessage() |
Exception |
getRootCause()
Retrieve the nested lower layer exception.
|
void |
printStackTrace() |
void |
printStackTrace(PrintStream ps) |
void |
printStackTrace(PrintWriter pw) |
void |
setCode(int c) |
void |
setCustomMessage(String m) |
void |
setRootCause(Exception c) |
String |
toString() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, setStackTrace
public static final int UNSPECIFIED
protected int code
protected Exception cause
protected String customMessage
public FTPException(int code, String message)
public FTPException(int code)
public String getCodeExplanation(int code)
public void setRootCause(Exception c)
public Exception getRootCause()
public void setCode(int c)
public int getCode()
public void setCustomMessage(String m)
public String getCustomMessage()
public String getMessage()
getMessage
in class Throwable
public void printStackTrace()
printStackTrace
in class Throwable
public void printStackTrace(PrintStream ps)
printStackTrace
in class Throwable
public void printStackTrace(PrintWriter pw)
printStackTrace
in class Throwable
Copyright © 2016. All rights reserved.