Class WantNotValidException

  • All Implemented Interfaces:
    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
    • 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,
                                     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.