
com.zandero.rest.exception.ExecuteException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rest.vertx Show documentation
Show all versions of rest.vertx Show documentation
JAX-RS REST annotation processor for vert.x verticals
The newest version!
package com.zandero.rest.exception;
/**
* Wrapper to transport exception when executing a REST call
*/
public class ExecuteException extends Exception {
/**
* Holds HTTP error code
*/
private final int statusCode;
public ExecuteException(int status, Throwable exception) {
super(exception.getMessage(), exception);
statusCode = status;
}
public ExecuteException(int status, String message) {
super(message);
statusCode = status;
}
public ExecuteException(int status, String message, Throwable cause) {
super(message, cause);
statusCode = status;
}
public int getStatusCode() {
return statusCode;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy