Package com.atlassian.bamboo.repository
Class HostKeyVerificationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.atlassian.bamboo.repository.RepositoryException
-
- com.atlassian.bamboo.repository.HostKeyVerificationException
-
- All Implemented Interfaces:
Serializable
public class HostKeyVerificationException extends RepositoryException
When SSH transport is used for server access and its key doesn't exists in Trusted keys.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HostKeyVerificationException(@NotNull String message, @Nullable Throwable cause, @Nullable TrustedKey trustedKey)
Create an exception containing the message and root causeHostKeyVerificationException(String message, @Nullable Throwable cause, String stdout, String stderr, @Nullable List<String> passwordsToObfuscate, @Nullable TrustedKey trustedKey)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getMessage()
@Nullable TrustedKey
getTrustedKey()
-
Methods inherited from class com.atlassian.bamboo.repository.RepositoryException
getRepositoryId, getStderr, getStdout
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
HostKeyVerificationException
public HostKeyVerificationException(@NotNull @NotNull String message, @Nullable @Nullable Throwable cause, @Nullable @Nullable TrustedKey trustedKey)
Create an exception containing the message and root cause- Parameters:
message
- The error messagecause
- The root cause
-
-
Method Detail
-
getMessage
public String getMessage()
- Overrides:
getMessage
in classThrowable
-
getTrustedKey
@Nullable public @Nullable TrustedKey getTrustedKey()
- Returns:
- key of remote server to be added to Trusted keys. May be null if fetching of server key was not implemented
-
-