Class S3Exception

  • All Implemented Interfaces:
    java.io.Serializable

    public class S3Exception
    extends java.lang.Exception
    An exception thrown during processing S3 REST requests.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      S3ErrorCode getErrorCode()  
      java.lang.String getResource()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • S3Exception

        public S3Exception​(java.lang.String resource,
                           S3ErrorCode errorCode)
        Constructs a new S3Exception.
        Parameters:
        resource - the resource name (bucket or object key)
        errorCode - the error code
      • S3Exception

        public S3Exception​(java.lang.Exception exception,
                           java.lang.String resource,
                           S3ErrorCode errorCode)
        Derives a new S3Exception from an existing exception.
        Parameters:
        exception - the existing exception
        resource - the resource name (bucket or object key)
        errorCode - the error code
    • Method Detail

      • getErrorCode

        public S3ErrorCode getErrorCode()
        Returns:
        the error code
      • getResource

        public java.lang.String getResource()
        Returns:
        the resource name