Class LargeObjectException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
LargeObjectException.ExceedsByteArrayLimit, LargeObjectException.ExceedsLimit, LargeObjectException.OutOfMemory

public class LargeObjectException extends RuntimeException
An object is too big to load into memory as a single byte array.
See Also:
  • Field Details

  • Constructor Details

    • LargeObjectException

      public LargeObjectException()
      Create a large object exception, where the object isn't known.
    • LargeObjectException

      public LargeObjectException(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 Details

    • 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 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 String getMessage()
      Overrides:
      getMessage in class Throwable