Top Description Fields Constructors Methods
org.eclipse.jgit.transport

public Class WantNotValidException

extends PackProtocolException
Class Inheritance
Imports
java.text.MessageFormat, org.eclipse.jgit.errors.PackProtocolException, org.eclipse.jgit.internal.JGitText, org.eclipse.jgit.lib.AnyObjectId

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 org.eclipse.jgit.errors.PackProtocolException.

Since
4.3

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public
WantNotValidException(AnyObjectId
invalid object identifier received from the client.
id
)

Construct a "want $id not valid" exception.

public
WantNotValidException(AnyObjectId
invalid object identifier received from the client.
id
,
Throwable
root cause of the object being invalid, such as an IOException from the storage system.
cause
)

Construct a "want $id not valid" exception.

Method Summary

Modifier and TypeMethod and Description
private static String

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides org.eclipse.jgit.errors.PackProtocolException.serialVersionUID.

Constructor Detail

WantNotValidExceptionback to summary
public WantNotValidException(AnyObjectId id)

Construct a "want $id not valid" exception.

Parameters
id:AnyObjectId

invalid object identifier received from the client.

WantNotValidExceptionback to summary
public WantNotValidException(AnyObjectId id, Throwable cause)

Construct a "want $id not valid" exception.

Parameters
id:AnyObjectId

invalid object identifier received from the client.

cause:Throwable

root cause of the object being invalid, such as an IOException from the storage system.

Method Detail

msgback to summary
private static String msg(AnyObjectId id)