com.mailosaur.MailosaurException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mailosaur-java Show documentation
Show all versions of mailosaur-java Show documentation
Mailosaur Java Bindings for Email Test Automation
package com.mailosaur;
/**
* Exception thrown for an invalid response.
*/
public class MailosaurException extends Exception {
private static final long serialVersionUID = 2L;
public MailosaurException(String message, String errorType) {
super(message);
this.errorType = errorType;
}
public MailosaurException(String message, String errorType, Integer httpStatusCode, String httpResponseBody) {
super(message);
this.errorType = errorType;
this.httpStatusCode = httpStatusCode;
this.httpResponseBody = httpResponseBody;
}
public MailosaurException(Throwable cause) {
super(cause);
this.errorType = "client_error";
}
private final String errorType;
private Integer httpStatusCode = null;
private String httpResponseBody = null;
public String errorType() { return this.errorType; }
public Integer httpStatusCode() { return this.httpStatusCode; }
public String httpResponseBody() { return this.httpResponseBody; }
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy