|
||||||||||
| 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
org.tranche.exceptions.ChunkDoesNotMatchHashException
public class ChunkDoesNotMatchHashException
| Field Summary | |
|---|---|
static java.lang.String |
MESSAGE
|
| Constructor Summary | |
|---|---|
ChunkDoesNotMatchHashException()
|
|
ChunkDoesNotMatchHashException(BigHash expectedHash,
BigHash foundHash)
Create exception based on the expected hash and the found (calculated) hash. |
|
ChunkDoesNotMatchHashException(java.lang.String serializedMessage)
Only use this constructor when re-creating a deserialized exception (i.e., creating exception from message sent from server to client). |
|
| Method Summary |
|---|
| 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 |
|---|
public static final java.lang.String MESSAGE
| Constructor Detail |
|---|
public ChunkDoesNotMatchHashException(BigHash expectedHash,
BigHash foundHash)
Create exception based on the expected hash and the found (calculated) hash.
expectedHash - The hash associated with the chunk.foundHash - The hash calculated based on chunks contents.public ChunkDoesNotMatchHashException(java.lang.String serializedMessage)
Only use this constructor when re-creating a deserialized exception (i.e., creating exception from message sent from server to client).
serializedMessage - public ChunkDoesNotMatchHashException()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||