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
An exception when the repository is invalid and should be handled
- Since:
- v4.0
- See Also:
-
Constructor Summary
ConstructorDescriptionInvalidRepositoryException
(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
Modifier and TypeMethodDescriptionstatic 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 Details
-
InvalidRepositoryException
-
InvalidRepositoryException
-
InvalidRepositoryException
-
InvalidRepositoryException
-
InvalidRepositoryException
-
-
Method Details
-
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:
-