Class WantNotValidException

  • All Implemented Interfaces:
    java.io.Serializable

    public class WantNotValidException
    extends PackProtocolException
    Indicates client requested an object the server does not want to serve.

    Typically visible only inside of the server implementation; clients are usually looking at the text message from the server in a generic PackProtocolException.

    Since:
    4.3
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static long serialVersionUID  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      private static java.lang.String msg​(AnyObjectId id)  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, 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

      • WantNotValidException

        public WantNotValidException​(AnyObjectId id)
        Construct a "want $id not valid" exception.
        Parameters:
        id - invalid object identifier received from the client.
      • WantNotValidException

        public WantNotValidException​(AnyObjectId id,
                                     java.lang.Throwable cause)
        Construct a "want $id not valid" exception.
        Parameters:
        id - invalid object identifier received from the client.
        cause - root cause of the object being invalid, such as an IOException from the storage system.
    • Method Detail

      • msg

        private static java.lang.String msg​(AnyObjectId id)