Class S3Exception

  • All Implemented Interfaces:
    java.io.Serializable

    public class S3Exception
    extends java.lang.RuntimeException
    RuntimeException to communicate general S3 errors. These are handled by com.adobe.testing.s3mock.util.S3ExceptionResolver, mapped to ErrorResponse and serialized.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      S3Exception​(int status, java.lang.String code, java.lang.String message)
      Creates a new S3Exception to be mapped as an ErrorResponse.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getCode()  
      java.lang.String getMessage()  
      int getStatus()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, 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​(int status,
                           java.lang.String code,
                           java.lang.String message)
        Creates a new S3Exception to be mapped as an ErrorResponse.
        Parameters:
        status - The Error Status.
        code - The Error Code.
        message - The Error Message.
    • Method Detail

      • getStatus

        public int getStatus()
      • getCode

        public java.lang.String getCode()
      • getMessage

        public java.lang.String getMessage()
        Overrides:
        getMessage in class java.lang.Throwable