org.gudy.azureus2.core3.torrent
Class TOTorrentException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.gudy.azureus2.core3.torrent.TOTorrentException
All Implemented Interfaces:
java.io.Serializable

public class TOTorrentException
extends java.lang.Exception

See Also:
Serialized Form

Field Summary
protected  int reason
           
static int RT_CANCELLED
           
static int RT_DECODE_FAILS
           
static int RT_FILE_NOT_FOUND
           
static int RT_HASH_FAILS
           
static int RT_READ_FAILS
           
static int RT_TOO_BIG
           
static int RT_UNSUPPORTED_ENCODING
           
static int RT_WRITE_FAILS
           
static int RT_ZERO_LENGTH
           
 
Constructor Summary
TOTorrentException(java.lang.String _str, int _reason)
           
TOTorrentException(java.lang.String _str, int _reason, java.lang.Throwable cause)
           
 
Method Summary
 int getReason()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RT_FILE_NOT_FOUND

public static final int RT_FILE_NOT_FOUND
See Also:
Constant Field Values

RT_ZERO_LENGTH

public static final int RT_ZERO_LENGTH
See Also:
Constant Field Values

RT_TOO_BIG

public static final int RT_TOO_BIG
See Also:
Constant Field Values

RT_READ_FAILS

public static final int RT_READ_FAILS
See Also:
Constant Field Values

RT_WRITE_FAILS

public static final int RT_WRITE_FAILS
See Also:
Constant Field Values

RT_DECODE_FAILS

public static final int RT_DECODE_FAILS
See Also:
Constant Field Values

RT_UNSUPPORTED_ENCODING

public static final int RT_UNSUPPORTED_ENCODING
See Also:
Constant Field Values

RT_HASH_FAILS

public static final int RT_HASH_FAILS
See Also:
Constant Field Values

RT_CANCELLED

public static final int RT_CANCELLED
See Also:
Constant Field Values

reason

protected final int reason
Constructor Detail

TOTorrentException

public TOTorrentException(java.lang.String _str,
                          int _reason)

TOTorrentException

public TOTorrentException(java.lang.String _str,
                          int _reason,
                          java.lang.Throwable cause)
Method Detail

getReason

public int getReason()