public class InsertException
extends java.lang.Exception
implements java.lang.Cloneable
Modifier and Type | Class and Description |
---|---|
static class |
InsertException.InsertExceptionMode |
Modifier and Type | Field and Description |
---|---|
FailureCodeTracker |
errorCodes
Collect errors when there are multiple failures.
|
java.lang.String |
extra
Extra detail message
|
InsertException.InsertExceptionMode |
mode
Failure mode, see the constants below.
|
static int |
UPPER_LIMIT_ERROR_CODE
There will never be more error codes than this constant.
|
FreenetURI |
uri
If a non-serious error, the URI we expect the insert to go to if it had succeeded.
|
Constructor and Description |
---|
InsertException(InsertException.InsertExceptionMode mode) |
InsertException(InsertException.InsertExceptionMode mode,
FailureCodeTracker errorCodes,
FreenetURI expectedURI) |
InsertException(InsertException.InsertExceptionMode m,
FreenetURI expectedURI) |
InsertException(InsertException.InsertExceptionMode mode,
java.lang.String message,
FailureCodeTracker errorCodes,
FreenetURI expectedURI) |
InsertException(InsertException.InsertExceptionMode m,
java.lang.String msg,
FreenetURI expectedURI) |
InsertException(InsertException.InsertExceptionMode mode,
java.lang.String message,
java.lang.Throwable e,
FreenetURI expectedURI) |
InsertException(InsertException.InsertExceptionMode mode,
java.lang.Throwable e,
FreenetURI expectedURI) |
InsertException(InsertException e) |
InsertException(TooManyFilesInsertException e) |
Modifier and Type | Method and Description |
---|---|
InsertException |
clone() |
static InsertException |
construct(FailureCodeTracker errors)
Construct an InsertException from a bunch of error codes, typically from a splitfile insert.
|
static InsertException |
constructFrom(LowLevelPutException e) |
static java.lang.String |
getMessage(InsertException.InsertExceptionMode mode)
Get the (localised) short name of this failure mode.
|
InsertException.InsertExceptionMode |
getMode()
Get the failure mode.
|
static java.lang.String |
getShortMessage(InsertException.InsertExceptionMode mode)
Get the (localised) long explanation for this failure mode.
|
boolean |
isFatal()
Is this error fatal? Non-fatal errors are errors which are likely to go away with
more retries, or at least for which there is some point retrying.
|
static boolean |
isFatal(InsertException.InsertExceptionMode mode) |
public final InsertException.InsertExceptionMode mode
public FailureCodeTracker errorCodes
public FreenetURI uri
public final java.lang.String extra
public static final int UPPER_LIMIT_ERROR_CODE
public InsertException(InsertException.InsertExceptionMode m, java.lang.String msg, FreenetURI expectedURI)
public InsertException(InsertException.InsertExceptionMode m, FreenetURI expectedURI)
public InsertException(InsertException.InsertExceptionMode mode, java.lang.Throwable e, FreenetURI expectedURI)
public InsertException(InsertException.InsertExceptionMode mode, java.lang.String message, java.lang.Throwable e, FreenetURI expectedURI)
public InsertException(InsertException.InsertExceptionMode mode, FailureCodeTracker errorCodes, FreenetURI expectedURI)
public InsertException(InsertException.InsertExceptionMode mode, java.lang.String message, FailureCodeTracker errorCodes, FreenetURI expectedURI)
public InsertException(InsertException.InsertExceptionMode mode)
public InsertException(InsertException e)
public InsertException(TooManyFilesInsertException e)
public InsertException.InsertExceptionMode getMode()
public static InsertException constructFrom(LowLevelPutException e)
public static java.lang.String getMessage(InsertException.InsertExceptionMode mode)
public static java.lang.String getShortMessage(InsertException.InsertExceptionMode mode)
public boolean isFatal()
public static boolean isFatal(InsertException.InsertExceptionMode mode)
public static InsertException construct(FailureCodeTracker errors)
public InsertException clone()
clone
in class java.lang.Object