public class CorruptObjectException
extends java.io.IOException
Modifier and Type | Field and Description |
---|---|
private ObjectChecker.ErrorType |
errorType |
private static long |
serialVersionUID |
Constructor and Description |
---|
CorruptObjectException(AnyObjectId id,
java.lang.String why)
Construct a CorruptObjectException for reporting a problem specified
object id
|
CorruptObjectException(ObjectChecker.ErrorType type,
AnyObjectId id,
java.lang.String why)
Report a specific error condition discovered in an object.
|
CorruptObjectException(ObjectId id,
java.lang.String why)
Construct a CorruptObjectException for reporting a problem specified
object id
|
CorruptObjectException(java.lang.String why)
Construct a CorruptObjectException for reporting a problem not associated
with a specific object id.
|
CorruptObjectException(java.lang.String why,
java.lang.Throwable cause)
Construct a CorruptObjectException for reporting a problem not associated
with a specific object id.
|
Modifier and Type | Method and Description |
---|---|
ObjectChecker.ErrorType |
getErrorType()
Specific error condition identified by
ObjectChecker . |
private static final long serialVersionUID
private ObjectChecker.ErrorType errorType
public CorruptObjectException(ObjectChecker.ErrorType type, AnyObjectId id, java.lang.String why)
type
- type of errorid
- identity of the bad objectwhy
- description of the error.public CorruptObjectException(AnyObjectId id, java.lang.String why)
id
- a AnyObjectId
why
- error messagepublic CorruptObjectException(ObjectId id, java.lang.String why)
id
- a ObjectId
why
- error messagepublic CorruptObjectException(java.lang.String why)
why
- error messagepublic CorruptObjectException(java.lang.String why, java.lang.Throwable cause)
why
- message describing the corruption.cause
- optional root cause exception@Nullable public ObjectChecker.ErrorType getErrorType()
ObjectChecker
.