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

public Class InvalidObjectIdException

extends IllegalArgumentException
Class Inheritance
Static Imports
java.nio.charset.StandardCharsets.US_ASCII

Thrown when an invalid object id is passed in as an argument.

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public
InvalidObjectIdException(byte[]
containing the invalid id.
bytes
,
int
in the byte array where the error occurred.
offset
,
int
of the sequence of invalid bytes.
length
)

Create exception with bytes of the invalid object id.

public
InvalidObjectIdException(String
the invalid id.
id
)

Constructor for InvalidObjectIdException

Method Summary

Modifier and TypeMethod and Description
private static String
msg(byte[] bytes, int offset, int length)

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.IllegalArgumentException.serialVersionUID.

Constructor Detail

InvalidObjectIdExceptionback to summary
public InvalidObjectIdException(byte[] bytes, int offset, int length)

Create exception with bytes of the invalid object id.

Parameters
bytes:byte[]

containing the invalid id.

offset:int

in the byte array where the error occurred.

length:int

of the sequence of invalid bytes.

InvalidObjectIdExceptionback to summary
public InvalidObjectIdException(String id)

Constructor for InvalidObjectIdException

Parameters
id:String

the invalid id.

Since
4.1

Method Detail

msgback to summary
private static String msg(byte[] bytes, int offset, int length)