All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.hubspot.imap.protocol.exceptions.UnexpectedAppendResponseException Maven / Gradle / Ivy

There is a newer version: 0.6.1
Show newest version
package com.hubspot.imap.protocol.exceptions;

import com.hubspot.imap.protocol.response.ImapResponse;

public class UnexpectedAppendResponseException extends RuntimeException {

  private static final String MESSAGE =
    "Received unexpected response from APPEND request: %s";

  public UnexpectedAppendResponseException() {
    super(MESSAGE);
  }

  public UnexpectedAppendResponseException(ImapResponse response) {
    super(String.format(MESSAGE, response.getMessage()));
  }

  public UnexpectedAppendResponseException(Throwable throwable) {
    super(String.format(MESSAGE, throwable.getMessage()), throwable);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy