Top Description Inners Fields Constructors Methods
org.eclipse.jgit.errors

public Class LargeObjectException

extends RuntimeException
Class Inheritance
Known Direct Subclasses
org.eclipse.jgit.errors.LargeObjectException.OutOfMemory, org.eclipse.jgit.errors.LargeObjectException.ExceedsByteArrayLimit, org.eclipse.jgit.errors.LargeObjectException.ExceedsLimit
Imports
java.text.MessageFormat, org.eclipse.jgit.internal.JGitText, org.eclipse.jgit.lib.AnyObjectId, .ObjectId

An object is too big to load into memory as a single byte array.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
LargeObjectException.ExceedsByteArrayLimit

Object size exceeds JVM limit of 2 GiB per byte array.

public static class
LargeObjectException.ExceedsLimit

Object size exceeds the caller's upper limit.

public static class
LargeObjectException.OutOfMemory

An error caused by the JVM being out of heap space.

Field Summary

Modifier and TypeField and Description
private ObjectId
private static final long

Constructor Summary

AccessConstructor and Description
public
LargeObjectException()

Create a large object exception, where the object isn't known.

public
LargeObjectException(Throwable
the cause
cause
)

Create a large object exception, where the object isn't known.

public
LargeObjectException(AnyObjectId
identity of the object that is too big to be loaded as a byte array in this JVM.
id
)

Create a large object exception, naming the object that is too big.

Method Summary

Modifier and TypeMethod and Description
public String
getMessage()

Overrides java.lang.Throwable.getMessage.

Returns the detail message string of this throwable.

public ObjectId

Returns:

identity of the object that is too large; may be null
getObjectId
()

Get identity of the object that is too large; may be null

protected String

Returns:

either the hex encoded name of the object, or 'unknown object'
getObjectName
()

Get the hex encoded name of the object, or 'unknown object'

public void
setObjectId(AnyObjectId
the id of the object that is too large to process.
id
)

Set the identity of the object, if its not already set.

Field Detail

objectIdback to summary
private ObjectId objectId
serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.RuntimeException.serialVersionUID.

Constructor Detail

LargeObjectExceptionback to summary
public LargeObjectException()

Create a large object exception, where the object isn't known.

LargeObjectExceptionback to summary
public LargeObjectException(Throwable cause)

Create a large object exception, where the object isn't known.

Parameters
cause:Throwable

the cause

Since
4.10
LargeObjectExceptionback to summary
public LargeObjectException(AnyObjectId id)

Create a large object exception, naming the object that is too big.

Parameters
id:AnyObjectId

identity of the object that is too big to be loaded as a byte array in this JVM.

Method Detail

getMessageback to summary
public String getMessage()

Overrides java.lang.Throwable.getMessage.

Doc from java.lang.Throwable.getMessage.

Returns the detail message string of this throwable.

Returns:String

the detail message string of this Throwable instance (which may be null).

Annotations
@Override
getObjectIdback to summary
public ObjectId getObjectId()

Get identity of the object that is too large; may be null

Returns:ObjectId

identity of the object that is too large; may be null

getObjectNameback to summary
protected String getObjectName()

Get the hex encoded name of the object, or 'unknown object'

Returns:String

either the hex encoded name of the object, or 'unknown object'

setObjectIdback to summary
public void setObjectId(AnyObjectId id)

Set the identity of the object, if its not already set.

Parameters
id:AnyObjectId

the id of the object that is too large to process.

org.eclipse.jgit.errors back to summary

public Class LargeObjectException.ExceedsByteArrayLimit

extends LargeObjectException
Class Inheritance

Object size exceeds JVM limit of 2 GiB per byte array.

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String
getMessage()

Overrides org.eclipse.jgit.errors.LargeObjectException.getMessage.

Returns the detail message string of this throwable.

Inherited from org.eclipse.jgit.errors.LargeObjectException:
getObjectIdgetObjectNamesetObjectId

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides org.eclipse.jgit.errors.LargeObjectException.serialVersionUID.

Constructor Detail

ExceedsByteArrayLimitback to summary
public ExceedsByteArrayLimit()

Method Detail

getMessageback to summary
public String getMessage()

Overrides org.eclipse.jgit.errors.LargeObjectException.getMessage.

Doc from java.lang.Throwable.getMessage.

Returns the detail message string of this throwable.

Returns:String

the detail message string of this Throwable instance (which may be null).

Annotations
@Override
org.eclipse.jgit.errors back to summary

public Class LargeObjectException.ExceedsLimit

extends LargeObjectException
Class Inheritance

Object size exceeds the caller's upper limit.

Field Summary

Modifier and TypeField and Description
private final long
private static final long
private final long

Constructor Summary

AccessConstructor and Description
public
ExceedsLimit(long
the limit the caller imposed on the object.
limit
,
long
the actual size of the object.
size
)

Construct an exception for a particular size being exceeded.

Method Summary

Modifier and TypeMethod and Description
public String
getMessage()

Overrides org.eclipse.jgit.errors.LargeObjectException.getMessage.

Returns the detail message string of this throwable.

Inherited from org.eclipse.jgit.errors.LargeObjectException:
getObjectIdgetObjectNamesetObjectId

Field Detail

limitback to summary
private final long limit
serialVersionUIDback to summary
private static final long serialVersionUID

Hides org.eclipse.jgit.errors.LargeObjectException.serialVersionUID.

sizeback to summary
private final long size

Constructor Detail

ExceedsLimitback to summary
public ExceedsLimit(long limit, long size)

Construct an exception for a particular size being exceeded.

Parameters
limit:long

the limit the caller imposed on the object.

size:long

the actual size of the object.

Method Detail

getMessageback to summary
public String getMessage()

Overrides org.eclipse.jgit.errors.LargeObjectException.getMessage.

Doc from java.lang.Throwable.getMessage.

Returns the detail message string of this throwable.

Returns:String

the detail message string of this Throwable instance (which may be null).

Annotations
@Override
org.eclipse.jgit.errors back to summary

public Class LargeObjectException.OutOfMemory

extends LargeObjectException
Class Inheritance

An error caused by the JVM being out of heap space.

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public
OutOfMemory(OutOfMemoryError
the original root cause.
cause
)

Construct a wrapper around the original OutOfMemoryError.

Method Summary

Modifier and TypeMethod and Description
public String
getMessage()

Overrides org.eclipse.jgit.errors.LargeObjectException.getMessage.

Returns the detail message string of this throwable.

Inherited from org.eclipse.jgit.errors.LargeObjectException:
getObjectIdgetObjectNamesetObjectId

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides org.eclipse.jgit.errors.LargeObjectException.serialVersionUID.

Constructor Detail

OutOfMemoryback to summary
public OutOfMemory(OutOfMemoryError cause)

Construct a wrapper around the original OutOfMemoryError.

Parameters
cause:OutOfMemoryError

the original root cause.

Method Detail

getMessageback to summary
public String getMessage()

Overrides org.eclipse.jgit.errors.LargeObjectException.getMessage.

Doc from java.lang.Throwable.getMessage.

Returns the detail message string of this throwable.

Returns:String

the detail message string of this Throwable instance (which may be null).

Annotations
@Override