public class RepositoryException extends Exception
Constructor and Description |
---|
RepositoryException(String message)
Deprecated.
since 5.14 use
RepositoryException(String, long) |
RepositoryException(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(String message,
Throwable cause)
Create an exception containing the message and root cause
|
RepositoryException(String message,
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(Throwable cause)
Deprecated.
since 5.14 use
RepositoryException(String, long) |
RepositoryException(Throwable cause,
long repositoryId) |
Modifier and Type | Method and Description |
---|---|
Long |
getRepositoryId()
Id of this exception's source.
|
String |
getStderr() |
String |
getStdout() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
@Deprecated public RepositoryException(@NotNull String message)
RepositoryException(String, long)
message
- The error messagepublic RepositoryException(@NotNull String message, long repositoryId)
@Deprecated public RepositoryException(@Nullable Throwable cause)
RepositoryException(String, long)
public RepositoryException(@Nullable Throwable cause, long repositoryId)
public RepositoryException(@NotNull String message, @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 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 String getStderr()
@Nullable public String getStdout()
@Nullable public Long getRepositoryId()
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.