Class InvalidAnnotationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.google.jenkins.plugins.storage.InvalidAnnotationException
- All Implemented Interfaces:
Serializable
This exception is intended to be thrown by implementations of the hook
AbstractBucketLifecycleManager.checkBucket(com.google.api.services.storage.model.Bucket)
when a bucket is not properly annotated.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInvalidAnnotationException
(com.google.api.services.storage.model.Bucket bucket) Constructor for the exception. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InvalidAnnotationException
public InvalidAnnotationException(com.google.api.services.storage.model.Bucket bucket) Constructor for the exception.- Parameters:
bucket
- Name of the GCS bucket.
-
-
Method Details
-
getBucket
public com.google.api.services.storage.model.Bucket getBucket()- Returns:
- The bucket that isn't properly annotated.
-