Class CredentialsUnavailableException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.cloudbees.plugins.credentials.CredentialsUnavailableException
-
- All Implemented Interfaces:
Serializable
public class CredentialsUnavailableException extends RuntimeException
This exception can be thrown by any get method in aCredentials
subclass to indicate that the requested property is unavailable.- Since:
- 2.1.5
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CredentialsUnavailableException(String property)
CredentialsUnavailableException(String property, String message)
CredentialsUnavailableException(String property, String message, Throwable cause)
CredentialsUnavailableException(String property, Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getMessage()
String
getProperty()
Reports the property name.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
CredentialsUnavailableException
public CredentialsUnavailableException(String property)
-
CredentialsUnavailableException
public CredentialsUnavailableException(String property, String message)
-
CredentialsUnavailableException
public CredentialsUnavailableException(String property, String message, Throwable cause)
-
-
Method Detail
-
getProperty
public String getProperty()
Reports the property name.- Returns:
- the property name.
-
getMessage
public String getMessage()
- Overrides:
getMessage
in classThrowable
-
-