Browse Source

Fix javadoc in org.eclipse.jgit errors package

Change-Id: I46aa5c3073b99a311a1a97fc57d8f29d32524482
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
stable-4.10
Matthias Sohn 7 years ago
parent
commit
6478577899
  1. 16
      org.eclipse.jgit/src/org/eclipse/jgit/errors/AmbiguousObjectException.java
  2. 3
      org.eclipse.jgit/src/org/eclipse/jgit/errors/CancelledException.java
  3. 4
      org.eclipse.jgit/src/org/eclipse/jgit/errors/CheckoutConflictException.java
  4. 6
      org.eclipse.jgit/src/org/eclipse/jgit/errors/CommandFailedException.java
  5. 4
      org.eclipse.jgit/src/org/eclipse/jgit/errors/CompoundException.java
  6. 4
      org.eclipse.jgit/src/org/eclipse/jgit/errors/ConfigInvalidException.java
  7. 8
      org.eclipse.jgit/src/org/eclipse/jgit/errors/CorruptObjectException.java
  8. 11
      org.eclipse.jgit/src/org/eclipse/jgit/errors/DiffInterruptedException.java
  9. 12
      org.eclipse.jgit/src/org/eclipse/jgit/errors/DirCacheNameConflictException.java
  10. 3
      org.eclipse.jgit/src/org/eclipse/jgit/errors/IllegalTodoFileModification.java
  11. 4
      org.eclipse.jgit/src/org/eclipse/jgit/errors/InvalidObjectIdException.java
  12. 5
      org.eclipse.jgit/src/org/eclipse/jgit/errors/InvalidPatternException.java
  13. 21
      org.eclipse.jgit/src/org/eclipse/jgit/errors/LargeObjectException.java
  14. 5
      org.eclipse.jgit/src/org/eclipse/jgit/errors/LockFailedException.java
  15. 6
      org.eclipse.jgit/src/org/eclipse/jgit/errors/MissingObjectException.java
  16. 2
      org.eclipse.jgit/src/org/eclipse/jgit/errors/NoClosingBracketException.java
  17. 2
      org.eclipse.jgit/src/org/eclipse/jgit/errors/NoMergeBaseException.java
  18. 8
      org.eclipse.jgit/src/org/eclipse/jgit/errors/NoWorkTreeException.java
  19. 4
      org.eclipse.jgit/src/org/eclipse/jgit/errors/PackInvalidException.java
  20. 4
      org.eclipse.jgit/src/org/eclipse/jgit/errors/PackMismatchException.java
  21. 4
      org.eclipse.jgit/src/org/eclipse/jgit/errors/RepositoryNotFoundException.java
  22. 10
      org.eclipse.jgit/src/org/eclipse/jgit/errors/RevWalkException.java
  23. 1
      org.eclipse.jgit/src/org/eclipse/jgit/errors/RevisionSyntaxException.java
  24. 4
      org.eclipse.jgit/src/org/eclipse/jgit/errors/StoredObjectRepresentationNotAvailableException.java
  25. 6
      org.eclipse.jgit/src/org/eclipse/jgit/errors/TooLargeObjectInPackException.java
  26. 10
      org.eclipse.jgit/src/org/eclipse/jgit/errors/TranslationBundleException.java
  27. 9
      org.eclipse.jgit/src/org/eclipse/jgit/errors/TranslationBundleLoadingException.java
  28. 10
      org.eclipse.jgit/src/org/eclipse/jgit/errors/TranslationStringMissingException.java
  29. 6
      org.eclipse.jgit/src/org/eclipse/jgit/errors/UnmergedPathException.java
  30. 4
      org.eclipse.jgit/src/org/eclipse/jgit/errors/UnpackException.java
  31. 7
      org.eclipse.jgit/src/org/eclipse/jgit/errors/UnsupportedCredentialItem.java

16
org.eclipse.jgit/src/org/eclipse/jgit/errors/AmbiguousObjectException.java

@ -51,7 +51,9 @@ import org.eclipse.jgit.internal.JGitText;
import org.eclipse.jgit.lib.AbbreviatedObjectId; import org.eclipse.jgit.lib.AbbreviatedObjectId;
import org.eclipse.jgit.lib.ObjectId; import org.eclipse.jgit.lib.ObjectId;
/** An {@link AbbreviatedObjectId} cannot be extended. */ /**
* An {@link org.eclipse.jgit.lib.AbbreviatedObjectId} cannot be extended.
*/
public class AmbiguousObjectException extends IOException { public class AmbiguousObjectException extends IOException {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
@ -76,12 +78,20 @@ public class AmbiguousObjectException extends IOException {
this.candidates = candidates; this.candidates = candidates;
} }
/** @return the AbbreviatedObjectId that has more than one result. */ /**
* Get the {@code AbbreviatedObjectId} that has more than one result
*
* @return the {@code AbbreviatedObjectId} that has more than one result
*/
public AbbreviatedObjectId getAbbreviatedObjectId() { public AbbreviatedObjectId getAbbreviatedObjectId() {
return missing; return missing;
} }
/** @return the matching candidates (or at least a subset of them). */ /**
* Get the matching candidates (or at least a subset of them)
*
* @return the matching candidates (or at least a subset of them)
*/
public Collection<ObjectId> getCandidates() { public Collection<ObjectId> getCandidates() {
return candidates; return candidates;
} }

3
org.eclipse.jgit/src/org/eclipse/jgit/errors/CancelledException.java

@ -54,7 +54,10 @@ public class CancelledException extends IOException {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/** /**
* Constructor for CancelledException
*
* @param message * @param message
* error message
*/ */
public CancelledException(String message) { public CancelledException(String message) {
super(message); super(message);

4
org.eclipse.jgit/src/org/eclipse/jgit/errors/CheckoutConflictException.java

@ -62,6 +62,7 @@ public class CheckoutConflictException extends IOException {
* Construct a CheckoutConflictException for the specified file * Construct a CheckoutConflictException for the specified file
* *
* @param file * @param file
* relative path of a file
*/ */
public CheckoutConflictException(String file) { public CheckoutConflictException(String file) {
super(MessageFormat.format(JGitText.get().checkoutConflictWithFile, file)); super(MessageFormat.format(JGitText.get().checkoutConflictWithFile, file));
@ -72,6 +73,7 @@ public class CheckoutConflictException extends IOException {
* Construct a CheckoutConflictException for the specified set of files * Construct a CheckoutConflictException for the specified set of files
* *
* @param files * @param files
* an array of relative file paths
*/ */
public CheckoutConflictException(String[] files) { public CheckoutConflictException(String[] files) {
super(MessageFormat.format(JGitText.get().checkoutConflictWithFiles, buildList(files))); super(MessageFormat.format(JGitText.get().checkoutConflictWithFiles, buildList(files)));
@ -79,6 +81,8 @@ public class CheckoutConflictException extends IOException {
} }
/** /**
* Get the relative paths of the conflicting files
*
* @return the relative paths of the conflicting files (relative to the * @return the relative paths of the conflicting files (relative to the
* working directory root). * working directory root).
* @since 4.4 * @since 4.4

6
org.eclipse.jgit/src/org/eclipse/jgit/errors/CommandFailedException.java

@ -54,6 +54,8 @@ public class CommandFailedException extends Exception {
private int returnCode; private int returnCode;
/** /**
* Constructor for CommandFailedException
*
* @param returnCode * @param returnCode
* return code returned by the command * return code returned by the command
* @param message * @param message
@ -65,6 +67,8 @@ public class CommandFailedException extends Exception {
} }
/** /**
* Constructor for CommandFailedException
*
* @param returnCode * @param returnCode
* return code returned by the command * return code returned by the command
* @param message * @param message
@ -79,6 +83,8 @@ public class CommandFailedException extends Exception {
} }
/** /**
* Get return code returned by the command
*
* @return return code returned by the command * @return return code returned by the command
*/ */
public int getReturnCode() { public int getReturnCode() {

4
org.eclipse.jgit/src/org/eclipse/jgit/errors/CompoundException.java

@ -50,7 +50,9 @@ import java.util.List;
import org.eclipse.jgit.internal.JGitText; import org.eclipse.jgit.internal.JGitText;
/** An exception detailing multiple reasons for failure. */ /**
* An exception detailing multiple reasons for failure.
*/
public class CompoundException extends Exception { public class CompoundException extends Exception {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;

4
org.eclipse.jgit/src/org/eclipse/jgit/errors/ConfigInvalidException.java

@ -43,7 +43,9 @@
package org.eclipse.jgit.errors; package org.eclipse.jgit.errors;
/** Indicates a text string is not a valid Git style configuration. */ /**
* Indicates a text string is not a valid Git style configuration.
*/
public class ConfigInvalidException extends Exception { public class ConfigInvalidException extends Exception {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;

8
org.eclipse.jgit/src/org/eclipse/jgit/errors/CorruptObjectException.java

@ -86,7 +86,9 @@ public class CorruptObjectException extends IOException {
* object id * object id
* *
* @param id * @param id
* a {@link org.eclipse.jgit.lib.AnyObjectId}
* @param why * @param why
* error message
*/ */
public CorruptObjectException(AnyObjectId id, String why) { public CorruptObjectException(AnyObjectId id, String why) {
super(MessageFormat.format(JGitText.get().objectIsCorrupt, id.name(), why)); super(MessageFormat.format(JGitText.get().objectIsCorrupt, id.name(), why));
@ -97,7 +99,9 @@ public class CorruptObjectException extends IOException {
* object id * object id
* *
* @param id * @param id
* a {@link org.eclipse.jgit.lib.ObjectId}
* @param why * @param why
* error message
*/ */
public CorruptObjectException(ObjectId id, String why) { public CorruptObjectException(ObjectId id, String why) {
super(MessageFormat.format(JGitText.get().objectIsCorrupt, id.name(), why)); super(MessageFormat.format(JGitText.get().objectIsCorrupt, id.name(), why));
@ -108,6 +112,7 @@ public class CorruptObjectException extends IOException {
* with a specific object id. * with a specific object id.
* *
* @param why * @param why
* error message
*/ */
public CorruptObjectException(String why) { public CorruptObjectException(String why) {
super(why); super(why);
@ -129,7 +134,8 @@ public class CorruptObjectException extends IOException {
} }
/** /**
* Specific error condition identified by {@link ObjectChecker}. * Specific error condition identified by
* {@link org.eclipse.jgit.lib.ObjectChecker}.
* *
* @return error condition or null. * @return error condition or null.
* @since 4.2 * @since 4.2

11
org.eclipse.jgit/src/org/eclipse/jgit/errors/DiffInterruptedException.java

@ -53,8 +53,12 @@ public class DiffInterruptedException extends RuntimeException {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/** /**
* Constructor for DiffInterruptedException
*
* @param message * @param message
* error message
* @param cause * @param cause
* a {@link java.lang.Throwable}
* @since 4.1 * @since 4.1
*/ */
public DiffInterruptedException(String message, Throwable cause) { public DiffInterruptedException(String message, Throwable cause) {
@ -62,14 +66,19 @@ public class DiffInterruptedException extends RuntimeException {
} }
/** /**
* Constructor for DiffInterruptedException
*
* @param message * @param message
* error message
* @since 4.1 * @since 4.1
*/ */
public DiffInterruptedException(String message) { public DiffInterruptedException(String message) {
super(message); super(message);
} }
/** Indicates that the thread computing a diff was interrupted. */ /**
* Indicates that the thread computing a diff was interrupted.
*/
public DiffInterruptedException() { public DiffInterruptedException() {
super(); super();
} }

12
org.eclipse.jgit/src/org/eclipse/jgit/errors/DirCacheNameConflictException.java

@ -68,12 +68,20 @@ public class DirCacheNameConflictException extends IllegalStateException {
this.path2 = path2; this.path2 = path2;
} }
/** @return one of the paths that has a conflict. */ /**
* Get one of the paths that has a conflict
*
* @return one of the paths that has a conflict
*/
public String getPath1() { public String getPath1() {
return path1; return path1;
} }
/** @return another path that has a conflict. */ /**
* Get another path that has a conflict
*
* @return another path that has a conflict
*/
public String getPath2() { public String getPath2() {
return path2; return path2;
} }

3
org.eclipse.jgit/src/org/eclipse/jgit/errors/IllegalTodoFileModification.java

@ -51,7 +51,10 @@ public class IllegalTodoFileModification extends Exception {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/** /**
* Constructor for IllegalTodoFileModification
*
* @param msg * @param msg
* error message
*/ */
public IllegalTodoFileModification(final String msg) { public IllegalTodoFileModification(final String msg) {
super(msg); super(msg);

4
org.eclipse.jgit/src/org/eclipse/jgit/errors/InvalidObjectIdException.java

@ -69,8 +69,10 @@ public class InvalidObjectIdException extends IllegalArgumentException {
} }
/** /**
* @param id the invalid id. * Constructor for InvalidObjectIdException
* *
* @param id
* the invalid id.
* @since 4.1 * @since 4.1
*/ */
public InvalidObjectIdException(String id) { public InvalidObjectIdException(String id) {

5
org.eclipse.jgit/src/org/eclipse/jgit/errors/InvalidPatternException.java

@ -47,7 +47,6 @@ package org.eclipse.jgit.errors;
/** /**
* Thrown when a pattern passed in an argument was wrong. * Thrown when a pattern passed in an argument was wrong.
*
*/ */
public class InvalidPatternException extends Exception { public class InvalidPatternException extends Exception {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
@ -55,6 +54,8 @@ public class InvalidPatternException extends Exception {
private final String pattern; private final String pattern;
/** /**
* Constructor for InvalidPatternException
*
* @param message * @param message
* explains what was wrong with the pattern. * explains what was wrong with the pattern.
* @param pattern * @param pattern
@ -66,6 +67,8 @@ public class InvalidPatternException extends Exception {
} }
/** /**
* Get the invalid pattern
*
* @return the invalid pattern. * @return the invalid pattern.
*/ */
public String getPattern() { public String getPattern() {

21
org.eclipse.jgit/src/org/eclipse/jgit/errors/LargeObjectException.java

@ -49,13 +49,17 @@ import org.eclipse.jgit.internal.JGitText;
import org.eclipse.jgit.lib.AnyObjectId; import org.eclipse.jgit.lib.AnyObjectId;
import org.eclipse.jgit.lib.ObjectId; import org.eclipse.jgit.lib.ObjectId;
/** An object is too big to load into memory as a single byte array. */ /**
* An object is too big to load into memory as a single byte array.
*/
public class LargeObjectException extends RuntimeException { public class LargeObjectException extends RuntimeException {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
private ObjectId objectId; private ObjectId objectId;
/** Create a large object exception, where the object isn't known. */ /**
* Create a large object exception, where the object isn't known.
*/
public LargeObjectException() { public LargeObjectException() {
// Do nothing. // Do nothing.
} }
@ -71,12 +75,20 @@ public class LargeObjectException extends RuntimeException {
setObjectId(id); setObjectId(id);
} }
/** @return identity of the object that is too large; may be null. */ /**
* Get identity of the object that is too large; may be null
*
* @return identity of the object that is too large; may be null
*/
public ObjectId getObjectId() { public ObjectId getObjectId() {
return objectId; return objectId;
} }
/** @return either the hex encoded name of the object, or 'unknown object'. */ /**
* Get the hex encoded name of the object, or 'unknown object'
*
* @return either the hex encoded name of the object, or 'unknown object'
*/
protected String getObjectName() { protected String getObjectName() {
if (getObjectId() != null) if (getObjectId() != null)
return getObjectId().name(); return getObjectId().name();
@ -94,6 +106,7 @@ public class LargeObjectException extends RuntimeException {
objectId = id.copy(); objectId = id.copy();
} }
/** {@inheritDoc} */
@Override @Override
public String getMessage() { public String getMessage() {
return MessageFormat.format(JGitText.get().largeObjectException, return MessageFormat.format(JGitText.get().largeObjectException,

5
org.eclipse.jgit/src/org/eclipse/jgit/errors/LockFailedException.java

@ -57,12 +57,15 @@ public class LockFailedException extends IOException {
private File file; private File file;
/** /**
* Constructor for LockFailedException
*
* @param file * @param file
* file that could not be locked * file that could not be locked
* @param message * @param message
* exception message * exception message
* @param cause * @param cause
* cause, for later retrieval by {@link Throwable#getCause()} * cause, for later retrieval by
* {@link java.lang.Throwable#getCause()}
* @since 4.1 * @since 4.1
*/ */
public LockFailedException(File file, String message, Throwable cause) { public LockFailedException(File file, String message, Throwable cause) {

6
org.eclipse.jgit/src/org/eclipse/jgit/errors/MissingObjectException.java

@ -100,7 +100,11 @@ public class MissingObjectException extends IOException {
missing = null; missing = null;
} }
/** @return the ObjectId that was not found. */ /**
* Get the ObjectId that was not found
*
* @return the ObjectId that was not found
*/
public ObjectId getObjectId() { public ObjectId getObjectId() {
return missing; return missing;
} }

2
org.eclipse.jgit/src/org/eclipse/jgit/errors/NoClosingBracketException.java

@ -58,6 +58,8 @@ public class NoClosingBracketException extends InvalidPatternException {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/** /**
* Constructor for NoClosingBracketException
*
* @param indexOfOpeningBracket * @param indexOfOpeningBracket
* the position of the [ character which has no ] character. * the position of the [ character which has no ] character.
* @param openingBracket * @param openingBracket

2
org.eclipse.jgit/src/org/eclipse/jgit/errors/NoMergeBaseException.java

@ -118,6 +118,8 @@ public class NoMergeBaseException extends IOException {
} }
/** /**
* Get the reason why no merge base could be found
*
* @return the reason why no merge base could be found * @return the reason why no merge base could be found
*/ */
public MergeBaseFailureReason getReason() { public MergeBaseFailureReason getReason() {

8
org.eclipse.jgit/src/org/eclipse/jgit/errors/NoWorkTreeException.java

@ -44,15 +44,17 @@
package org.eclipse.jgit.errors; package org.eclipse.jgit.errors;
import org.eclipse.jgit.internal.JGitText; import org.eclipse.jgit.internal.JGitText;
import org.eclipse.jgit.lib.Repository;
/** /**
* Indicates a {@link Repository} has no working directory, and is thus bare. * Indicates a {@link org.eclipse.jgit.lib.Repository} has no working directory,
* and is thus bare.
*/ */
public class NoWorkTreeException extends IllegalStateException { public class NoWorkTreeException extends IllegalStateException {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/** Creates an exception indicating there is no work tree for a repository. */ /**
* Creates an exception indicating there is no work tree for a repository.
*/
public NoWorkTreeException() { public NoWorkTreeException() {
super(JGitText.get().bareRepositoryNoWorkdirAndIndex); super(JGitText.get().bareRepositoryNoWorkdirAndIndex);
} }

4
org.eclipse.jgit/src/org/eclipse/jgit/errors/PackInvalidException.java

@ -49,7 +49,9 @@ import java.text.MessageFormat;
import org.eclipse.jgit.internal.JGitText; import org.eclipse.jgit.internal.JGitText;
/** Thrown when a PackFile previously failed and is known to be unusable */ /**
* Thrown when a PackFile previously failed and is known to be unusable
*/
public class PackInvalidException extends IOException { public class PackInvalidException extends IOException {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;

4
org.eclipse.jgit/src/org/eclipse/jgit/errors/PackMismatchException.java

@ -45,7 +45,9 @@ package org.eclipse.jgit.errors;
import java.io.IOException; import java.io.IOException;
/** Thrown when a PackFile no longer matches the PackIndex. */ /**
* Thrown when a PackFile no longer matches the PackIndex.
*/
public class PackMismatchException extends IOException { public class PackMismatchException extends IOException {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;

4
org.eclipse.jgit/src/org/eclipse/jgit/errors/RepositoryNotFoundException.java

@ -48,7 +48,9 @@ import java.text.MessageFormat;
import org.eclipse.jgit.internal.JGitText; import org.eclipse.jgit.internal.JGitText;
/** Indicates a local repository does not exist. */ /**
* Indicates a local repository does not exist.
*/
public class RepositoryNotFoundException extends TransportException { public class RepositoryNotFoundException extends TransportException {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;

10
org.eclipse.jgit/src/org/eclipse/jgit/errors/RevWalkException.java

@ -45,16 +45,16 @@
package org.eclipse.jgit.errors; package org.eclipse.jgit.errors;
import org.eclipse.jgit.internal.JGitText; import org.eclipse.jgit.internal.JGitText;
import org.eclipse.jgit.revwalk.RevWalk;
/** /**
* Indicates a checked exception was thrown inside of {@link RevWalk}. * Indicates a checked exception was thrown inside of
* {@link org.eclipse.jgit.revwalk.RevWalk}.
* <p> * <p>
* Usually this exception is thrown from the Iterator created around a RevWalk * Usually this exception is thrown from the Iterator created around a RevWalk
* instance, as the Iterator API does not allow checked exceptions to be thrown * instance, as the Iterator API does not allow checked exceptions to be thrown
* from hasNext() or next(). The {@link Exception#getCause()} of this exception * from hasNext() or next(). The {@link java.lang.Exception#getCause()} of this
* is the original checked exception that we really wanted to throw back to the * exception is the original checked exception that we really wanted to throw
* application for handling and recovery. * back to the application for handling and recovery.
*/ */
public class RevWalkException extends RuntimeException { public class RevWalkException extends RuntimeException {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;

1
org.eclipse.jgit/src/org/eclipse/jgit/errors/RevisionSyntaxException.java

@ -77,6 +77,7 @@ public class RevisionSyntaxException extends IllegalArgumentException {
this.revstr = revstr; this.revstr = revstr;
} }
/** {@inheritDoc} */
@Override @Override
public String toString() { public String toString() {
return super.toString() + ":" + revstr; //$NON-NLS-1$ return super.toString() + ":" + revstr; //$NON-NLS-1$

4
org.eclipse.jgit/src/org/eclipse/jgit/errors/StoredObjectRepresentationNotAvailableException.java

@ -45,7 +45,9 @@ package org.eclipse.jgit.errors;
import org.eclipse.jgit.internal.storage.pack.ObjectToPack; import org.eclipse.jgit.internal.storage.pack.ObjectToPack;
/** A previously selected representation is no longer available. */ /**
* A previously selected representation is no longer available.
*/
public class StoredObjectRepresentationNotAvailableException extends Exception { public class StoredObjectRepresentationNotAvailableException extends Exception {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;

6
org.eclipse.jgit/src/org/eclipse/jgit/errors/TooLargeObjectInPackException.java

@ -48,7 +48,9 @@ import java.text.MessageFormat;
import org.eclipse.jgit.internal.JGitText; import org.eclipse.jgit.internal.JGitText;
import org.eclipse.jgit.transport.URIish; import org.eclipse.jgit.transport.URIish;
/** Thrown when PackParser finds an object larger than a predefined limit */ /**
* Thrown when PackParser finds an object larger than a predefined limit
*/
public class TooLargeObjectInPackException extends TransportException { public class TooLargeObjectInPackException extends TransportException {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
@ -72,7 +74,9 @@ public class TooLargeObjectInPackException extends TransportException {
* too large object is known. * too large object is known.
* *
* @param objectSize * @param objectSize
* a long.
* @param maxObjectSizeLimit * @param maxObjectSizeLimit
* a long.
*/ */
public TooLargeObjectInPackException(long objectSize, public TooLargeObjectInPackException(long objectSize,
long maxObjectSizeLimit) { long maxObjectSizeLimit) {

10
org.eclipse.jgit/src/org/eclipse/jgit/errors/TranslationBundleException.java

@ -43,7 +43,6 @@
package org.eclipse.jgit.errors; package org.eclipse.jgit.errors;
import java.util.Locale; import java.util.Locale;
import java.util.ResourceBundle;
/** /**
* Common base class for all translation bundle related exceptions. * Common base class for all translation bundle related exceptions.
@ -55,7 +54,8 @@ public abstract class TranslationBundleException extends RuntimeException {
private final Locale locale; private final Locale locale;
/** /**
* To construct an instance of {@link TranslationBundleException} * Construct an instance of
* {@link org.eclipse.jgit.errors.TranslationBundleException}
* *
* @param message * @param message
* exception message * exception message
@ -65,7 +65,7 @@ public abstract class TranslationBundleException extends RuntimeException {
* locale for which the exception occurred * locale for which the exception occurred
* @param cause * @param cause
* original exception that caused this exception. Usually thrown * original exception that caused this exception. Usually thrown
* from the {@link ResourceBundle} class. * from the {@link java.util.ResourceBundle} class.
*/ */
protected TranslationBundleException(String message, Class bundleClass, Locale locale, Exception cause) { protected TranslationBundleException(String message, Class bundleClass, Locale locale, Exception cause) {
super(message, cause); super(message, cause);
@ -74,6 +74,8 @@ public abstract class TranslationBundleException extends RuntimeException {
} }
/** /**
* Get bundle class
*
* @return bundle class for which the exception occurred * @return bundle class for which the exception occurred
*/ */
final public Class getBundleClass() { final public Class getBundleClass() {
@ -81,6 +83,8 @@ public abstract class TranslationBundleException extends RuntimeException {
} }
/** /**
* Get locale for which the exception occurred
*
* @return locale for which the exception occurred * @return locale for which the exception occurred
*/ */
final public Locale getLocale() { final public Locale getLocale() {

9
org.eclipse.jgit/src/org/eclipse/jgit/errors/TranslationBundleLoadingException.java

@ -43,7 +43,6 @@
package org.eclipse.jgit.errors; package org.eclipse.jgit.errors;
import java.util.Locale; import java.util.Locale;
import java.util.ResourceBundle;
/** /**
* This exception will be thrown when a translation bundle loading * This exception will be thrown when a translation bundle loading
@ -53,8 +52,9 @@ public class TranslationBundleLoadingException extends TranslationBundleExceptio
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/** /**
* Construct a {@link TranslationBundleLoadingException} for the specified * Construct a
* bundle class and locale. * {@link org.eclipse.jgit.errors.TranslationBundleLoadingException} for the
* specified bundle class and locale.
* *
* @param bundleClass * @param bundleClass
* the bundle class for which the loading failed * the bundle class for which the loading failed
@ -62,7 +62,8 @@ public class TranslationBundleLoadingException extends TranslationBundleExceptio
* the locale for which the loading failed * the locale for which the loading failed
* @param cause * @param cause
* the original exception thrown from the * the original exception thrown from the
* {@link ResourceBundle#getBundle(String, Locale)} method. * {@link java.util.ResourceBundle#getBundle(String, Locale)}
* method.
*/ */
public TranslationBundleLoadingException(Class bundleClass, Locale locale, Exception cause) { public TranslationBundleLoadingException(Class bundleClass, Locale locale, Exception cause) {
super("Loading of translation bundle failed for [" //$NON-NLS-1$ super("Loading of translation bundle failed for [" //$NON-NLS-1$

10
org.eclipse.jgit/src/org/eclipse/jgit/errors/TranslationStringMissingException.java

@ -43,7 +43,6 @@
package org.eclipse.jgit.errors; package org.eclipse.jgit.errors;
import java.util.Locale; import java.util.Locale;
import java.util.ResourceBundle;
/** /**
* This exception will be thrown when a translation string for a translation * This exception will be thrown when a translation string for a translation
@ -55,8 +54,9 @@ public class TranslationStringMissingException extends TranslationBundleExceptio
private final String key; private final String key;
/** /**
* Construct a {@link TranslationStringMissingException} for the specified * Construct a
* bundle class, locale and translation key * {@link org.eclipse.jgit.errors.TranslationStringMissingException} for the
* specified bundle class, locale and translation key
* *
* @param bundleClass * @param bundleClass
* the bundle class for which a translation string was missing * the bundle class for which a translation string was missing
@ -66,7 +66,7 @@ public class TranslationStringMissingException extends TranslationBundleExceptio
* the key of the missing translation string * the key of the missing translation string
* @param cause * @param cause
* the original exception thrown from the * the original exception thrown from the
* {@link ResourceBundle#getString(String)} method. * {@link java.util.ResourceBundle#getString(String)} method.
*/ */
public TranslationStringMissingException(Class bundleClass, Locale locale, String key, Exception cause) { public TranslationStringMissingException(Class bundleClass, Locale locale, String key, Exception cause) {
super("Translation missing for [" + bundleClass.getName() + ", " //$NON-NLS-1$ //$NON-NLS-2$ super("Translation missing for [" + bundleClass.getName() + ", " //$NON-NLS-1$ //$NON-NLS-2$
@ -76,6 +76,8 @@ public class TranslationStringMissingException extends TranslationBundleExceptio
} }
/** /**
* Get the key of the missing translation string
*
* @return the key of the missing translation string * @return the key of the missing translation string
*/ */
public String getKey() { public String getKey() {

6
org.eclipse.jgit/src/org/eclipse/jgit/errors/UnmergedPathException.java

@ -68,7 +68,11 @@ public class UnmergedPathException extends IOException {
entry = dce; entry = dce;
} }
/** @return the first non-zero stage of the unmerged path */ /**
* Get the first non-zero stage of the unmerged path
*
* @return the first non-zero stage of the unmerged path
*/
public DirCacheEntry getDirCacheEntry() { public DirCacheEntry getDirCacheEntry() {
return entry; return entry;
} }

4
org.eclipse.jgit/src/org/eclipse/jgit/errors/UnpackException.java

@ -47,7 +47,9 @@ import java.io.IOException;
import org.eclipse.jgit.internal.JGitText; import org.eclipse.jgit.internal.JGitText;
/** Indicates a ReceivePack failure while scanning the pack stream. */ /**
* Indicates a ReceivePack failure while scanning the pack stream.
*/
public class UnpackException extends IOException { public class UnpackException extends IOException {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;

7
org.eclipse.jgit/src/org/eclipse/jgit/errors/UnsupportedCredentialItem.java

@ -43,13 +43,12 @@
*/ */
package org.eclipse.jgit.errors; package org.eclipse.jgit.errors;
import org.eclipse.jgit.transport.CredentialItem;
import org.eclipse.jgit.transport.CredentialsProvider;
import org.eclipse.jgit.transport.URIish; import org.eclipse.jgit.transport.URIish;
/** /**
* An exception thrown when a {@link CredentialItem} is requested from a * An exception thrown when a {@link org.eclipse.jgit.transport.CredentialItem}
* {@link CredentialsProvider} which is not supported by this provider. * is requested from a {@link org.eclipse.jgit.transport.CredentialsProvider}
* which is not supported by this provider.
*/ */
public class UnsupportedCredentialItem extends RuntimeException { public class UnsupportedCredentialItem extends RuntimeException {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;

Loading…
Cancel
Save