"WEBNMS_5 API Docs"

com.adventnet.nms.tftp
Class TftpException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.adventnet.nms.tftp.TftpException
All Implemented Interfaces:
java.io.Serializable

public class TftpException
extends java.lang.Exception

Signals that an error occurred during transfer of files.

See Also:
Serialized Form

Constructor Summary
TftpException(short code, java.lang.String message)
          Constructs a TftpException with the proper error code and error message.
TftpException(java.lang.String message)
          Constructs a TftpException with the detailed error message.
 
Method Summary
 short getErrorCode()
          Returns the errorCode.
 java.lang.String getErrorMessage()
          Returns the error message.
 java.lang.String toString()
          Returns the concatenated value of errorCode and errorMessage
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TftpException

public TftpException(java.lang.String message)
Constructs a TftpException with the detailed error message.


TftpException

public TftpException(short code,
                     java.lang.String message)
Constructs a TftpException with the proper error code and error message.

Method Detail

getErrorCode

public short getErrorCode()
Returns the errorCode.


getErrorMessage

public java.lang.String getErrorMessage()
Returns the error message.


toString

public java.lang.String toString()
Returns the concatenated value of errorCode and errorMessage

Overrides:
toString in class java.lang.Throwable

"WEBNMS_5 API Docs"

Copyright © 2011 ZOHO Corp., All Rights Reserved.