Class InvalidAnnotationException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.google.jenkins.plugins.storage.InvalidAnnotationException
All Implemented Interfaces:
Serializable

public class InvalidAnnotationException extends Exception
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 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.