Class ErrorResponse

java.lang.Object
io.minio.messages.ErrorResponse
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
DeleteResult.Error

public class ErrorResponse extends Object implements Serializable
Error response XML of any S3 REST APIs.
See Also:
  • Field Details

    • code

      protected String code
    • message

      protected String message
    • bucketName

      protected String bucketName
    • objectName

      protected String objectName
    • resource

      protected String resource
    • requestId

      protected String requestId
    • hostId

      protected String hostId
  • Constructor Details

    • ErrorResponse

      protected ErrorResponse()
    • ErrorResponse

      public ErrorResponse(@Nonnull String code, @Nullable String message, @Nullable String bucketName, @Nullable String objectName, @Nullable String resource, @Nullable String requestId, @Nullable String hostId)
      Constructs a new ErrorResponse object with error code, bucket name, object name, resource, request ID and host ID.
  • Method Details

    • code

      public String code()
      Returns error code.
    • message

      public String message()
      Returns error message.
    • bucketName

      public String bucketName()
      Returns bucket name.
    • objectName

      public String objectName()
      Returns object name.
    • hostId

      public String hostId()
      Returns host ID.
    • requestId

      public String requestId()
      Returns request ID.
    • resource

      public String resource()
      Returns resource.
    • stringify

      protected String stringify()
    • toString

      public String toString()
      Overrides:
      toString in class Object