|
LCM Software TFTP Package v1.5 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.io.IOException
com.lcmsoft.tftp.TftpErrorException
public class TftpErrorException
Thrown to indicate that a TFTP error has occurred. A
TftpErrorException is thrown as a result of a remote
error, that is, an error signaled by the remote host. Since all
TFTP errors cause the termination of the request, once a
TftpErrorException has been thrown the request must be
abandoned and no further communication must be tried.
A TftpErrorException has a numeric error code, indicating
the nature of the error, and a descriptive text message. The class
defines convenient constants for all standard error codes specified by the
TFTP standard. The text message may be empty, but is guaranteed to be
non-null.
| Field Summary | |
|---|---|
static int |
ERROR_ACCESS_VIOLATION
Access violation. |
static int |
ERROR_DISK_FULL
Disk full or allocation exceeded. |
static int |
ERROR_FILE_EXISTS
File already exists. |
static int |
ERROR_FILE_NOT_FOUND
File not found. |
static int |
ERROR_ILLEGAL_OPERATION
Illegal TFTP operation. |
static int |
ERROR_NO_SUCH_USER
No such user. |
static int |
ERROR_NOT_DEFINED
Not defined. |
static int |
ERROR_OPTION_NEGOTIATION
Transfer terminated due to option negotiation. |
static int |
ERROR_UNKNOW_ID
Unknow transfer ID. |
| Method Summary | |
|---|---|
int |
getCode()
Returns the error code. |
java.lang.String |
getMessage()
Returns the error message. |
java.lang.String |
toString()
Returns a string representation of this exception. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int ERROR_NOT_DEFINED
public static final int ERROR_FILE_NOT_FOUND
public static final int ERROR_ACCESS_VIOLATION
public static final int ERROR_DISK_FULL
public static final int ERROR_ILLEGAL_OPERATION
public static final int ERROR_UNKNOW_ID
public static final int ERROR_FILE_EXISTS
public static final int ERROR_NO_SUCH_USER
public static final int ERROR_OPTION_NEGOTIATION
| Method Detail |
|---|
public int getCode()
public java.lang.String getMessage()
getMessage in class java.lang.Throwablepublic java.lang.String toString()
class name: error message (error code)
toString in class java.lang.Throwable
|
Copyright © 2004 LCM Software All rights reserved |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||