Class LargeObjectException

    • 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 null
      protected 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.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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 class java.lang.Throwable