Package com.atlassian.bamboo.repository
Class InvalidRepositoryException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.atlassian.bamboo.repository.RepositoryException
-
- com.atlassian.bamboo.repository.InvalidRepositoryException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
InvalidStashRepositoryException
public class InvalidRepositoryException extends RepositoryException
An exception when the repository is invalid and should be handled- Since:
- v4.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InvalidRepositoryException(String message)
InvalidRepositoryException(String message, String stdout, String stderr)
InvalidRepositoryException(String message, Throwable cause)
InvalidRepositoryException(String message, Throwable cause, String stdout, String stderr)
InvalidRepositoryException(String message, Throwable cause, String stdout, String stderr, long repositoryId)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
handleInvalidRepositoryIfAppropriate(@Nullable PlanKey planKey, Throwable e, ErrorCollection errorCollection, com.atlassian.event.api.EventPublisher eventPublisher, @Nullable ErrorHandler errorHandler)
Returns if theInvalidRepositoryException
was handled (if the passed exception or the cause of it is of the right type.-
Methods inherited from class com.atlassian.bamboo.repository.RepositoryException
getRepositoryId, getStderr, getStdout
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
InvalidRepositoryException
public InvalidRepositoryException(String message)
-
InvalidRepositoryException
public InvalidRepositoryException(String message, Throwable cause, String stdout, String stderr)
-
InvalidRepositoryException
public InvalidRepositoryException(String message, String stdout, String stderr)
-
-
Method Detail
-
handleInvalidRepositoryIfAppropriate
public static boolean handleInvalidRepositoryIfAppropriate(@Nullable @Nullable PlanKey planKey, Throwable e, ErrorCollection errorCollection, com.atlassian.event.api.EventPublisher eventPublisher, @Nullable @Nullable ErrorHandler errorHandler)
Returns if theInvalidRepositoryException
was handled (if the passed exception or the cause of it is of the right type.- Parameters:
planKey
-e
-errorCollection
-eventPublisher
-errorHandler
-- Returns:
-
-