Package org.eclipse.jgit.errors
Class LargeObjectException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.eclipse.jgit.errors.LargeObjectException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
LargeObjectException.ExceedsByteArrayLimit
,LargeObjectException.ExceedsLimit
,LargeObjectException.OutOfMemory
public class LargeObjectException extends java.lang.RuntimeException
An object is too big to load into memory as a single byte array.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LargeObjectException.ExceedsByteArrayLimit
Object size exceeds JVM limit of 2 GiB per byte array.static class
LargeObjectException.ExceedsLimit
Object size exceeds the caller's upper limit.static class
LargeObjectException.OutOfMemory
An error caused by the JVM being out of heap space.
-
Field Summary
Fields Modifier and Type Field Description private ObjectId
objectId
private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description LargeObjectException()
Create a large object exception, where the object isn't known.LargeObjectException(java.lang.Throwable cause)
Create a large object exception, where the object isn't known.LargeObjectException(AnyObjectId id)
Create a large object exception, naming the object that is too big.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getMessage()
ObjectId
getObjectId()
Get identity of the object that is too large; may be nullprotected java.lang.String
getObjectName()
Get the hex encoded name of the object, or 'unknown object'void
setObjectId(AnyObjectId id)
Set the identity of the object, if its not already set.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
objectId
private ObjectId objectId
-
-
Constructor Detail
-
LargeObjectException
public LargeObjectException()
Create a large object exception, where the object isn't known.
-
LargeObjectException
public LargeObjectException(java.lang.Throwable cause)
Create a large object exception, where the object isn't known.- Parameters:
cause
- the cause- Since:
- 4.10
-
LargeObjectException
public LargeObjectException(AnyObjectId id)
Create a large object exception, naming the object that is too big.- Parameters:
id
- identity of the object that is too big to be loaded as a byte array in this JVM.
-
-
Method Detail
-
getObjectId
public ObjectId getObjectId()
Get identity of the object that is too large; may be null- Returns:
- identity of the object that is too large; may be null
-
getObjectName
protected java.lang.String getObjectName()
Get the hex encoded name of the object, or 'unknown object'- Returns:
- either the hex encoded name of the object, or 'unknown object'
-
setObjectId
public void setObjectId(AnyObjectId id)
Set the identity of the object, if its not already set.- Parameters:
id
- the id of the object that is too large to process.
-
getMessage
public java.lang.String getMessage()
- Overrides:
getMessage
in classjava.lang.Throwable
-
-