public class RepositoryException extends Exception
Constructor and Description |
---|
RepositoryException(@NotNull String message)
Deprecated.
since 5.14 use
RepositoryException(String, long) |
RepositoryException(@NotNull String message,
long repositoryId) |
RepositoryException(String message,
String stdout,
String stderr)
Create an exception containing the message and stdout/stderr output from external command
|
RepositoryException(@NotNull String message,
@Nullable Throwable cause)
Create an exception containing the message and root cause
|
RepositoryException(String message,
@Nullable Throwable cause,
String stdout,
String stderr)
Create an exception containing the message, root cause and stdout/stderr output from external command
|
RepositoryException(String message,
Throwable cause,
String stdout,
String stderr,
long repositoryId)
Create an exception containing the message, root cause, stdout/stderr output from external command and repositoryId
|
RepositoryException(@Nullable Throwable cause)
Deprecated.
since 5.14 use
RepositoryException(String, long) |
RepositoryException(@Nullable Throwable cause,
long repositoryId) |
Modifier and Type | Method and Description |
---|---|
@Nullable Long |
getRepositoryId()
Id of this exception's source.
|
@Nullable String |
getStderr() |
@Nullable String |
getStdout() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
@Deprecated public RepositoryException(@NotNull @NotNull String message)
RepositoryException(String, long)
message
- The error messagepublic RepositoryException(@NotNull @NotNull String message, long repositoryId)
@Deprecated public RepositoryException(@Nullable @Nullable Throwable cause)
RepositoryException(String, long)
public RepositoryException(@Nullable @Nullable Throwable cause, long repositoryId)
public RepositoryException(@NotNull @NotNull String message, @Nullable @Nullable Throwable cause)
message
- The error messagecause
- The root causepublic RepositoryException(String message, String stdout, String stderr)
message
- The error messagestdout
- Command standard outputstderr
- Command standard error outputpublic RepositoryException(String message, @Nullable @Nullable Throwable cause, String stdout, String stderr)
message
- The error messagecause
- The root causestdout
- Command standard outputstderr
- Command standard error outputpublic RepositoryException(String message, Throwable cause, String stdout, String stderr, long repositoryId)
message
- The error messagecause
- The root causestdout
- Command standard outputstderr
- Command standard error outputrepositoryId
- id of repository@Nullable public @Nullable String getStderr()
@Nullable public @Nullable String getStdout()
@Nullable public @Nullable Long getRepositoryId()
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.