Java Code Examples for org.apache.flink.shaded.netty4.io.netty.handler.codec.http.HttpResponseStatus#code()

The following examples show how to use org.apache.flink.shaded.netty4.io.netty.handler.codec.http.HttpResponseStatus#code() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: RestHandlerException.java    From Flink-CEPplus with Apache License 2.0 4 votes vote down vote up
public RestHandlerException(String errorMessage, HttpResponseStatus httpResponseStatus) {
	super(errorMessage);
	this.responseCode = httpResponseStatus.code();
}
 
Example 2
Source File: RestHandlerException.java    From Flink-CEPplus with Apache License 2.0 4 votes vote down vote up
public RestHandlerException(String errorMessage, HttpResponseStatus httpResponseStatus, Throwable cause) {
	super(errorMessage, cause);
	this.responseCode = httpResponseStatus.code();
}
 
Example 3
Source File: RestClientException.java    From Flink-CEPplus with Apache License 2.0 4 votes vote down vote up
public RestClientException(String message, HttpResponseStatus responseStatus) {
	super(message);

	Preconditions.checkNotNull(responseStatus);
	responseCode = responseStatus.code();
}
 
Example 4
Source File: RestClientException.java    From Flink-CEPplus with Apache License 2.0 4 votes vote down vote up
public RestClientException(String message, Throwable cause, HttpResponseStatus responseStatus) {
	super(message, cause);

	responseCode = responseStatus.code();
}
 
Example 5
Source File: RestHandlerException.java    From flink with Apache License 2.0 4 votes vote down vote up
public RestHandlerException(String errorMessage, HttpResponseStatus httpResponseStatus) {
	super(errorMessage);
	this.responseCode = httpResponseStatus.code();
}
 
Example 6
Source File: RestHandlerException.java    From flink with Apache License 2.0 4 votes vote down vote up
public RestHandlerException(String errorMessage, HttpResponseStatus httpResponseStatus, Throwable cause) {
	super(errorMessage, cause);
	this.responseCode = httpResponseStatus.code();
}
 
Example 7
Source File: RestClientException.java    From flink with Apache License 2.0 4 votes vote down vote up
public RestClientException(String message, HttpResponseStatus responseStatus) {
	super(message);

	Preconditions.checkNotNull(responseStatus);
	responseCode = responseStatus.code();
}
 
Example 8
Source File: RestClientException.java    From flink with Apache License 2.0 4 votes vote down vote up
public RestClientException(String message, Throwable cause, HttpResponseStatus responseStatus) {
	super(message, cause);

	responseCode = responseStatus.code();
}
 
Example 9
Source File: RestHandlerException.java    From flink with Apache License 2.0 4 votes vote down vote up
public RestHandlerException(String errorMessage, HttpResponseStatus httpResponseStatus) {
	super(errorMessage);
	this.responseCode = httpResponseStatus.code();
}
 
Example 10
Source File: RestHandlerException.java    From flink with Apache License 2.0 4 votes vote down vote up
public RestHandlerException(String errorMessage, HttpResponseStatus httpResponseStatus, Throwable cause) {
	super(errorMessage, cause);
	this.responseCode = httpResponseStatus.code();
}
 
Example 11
Source File: RestClientException.java    From flink with Apache License 2.0 4 votes vote down vote up
public RestClientException(String message, HttpResponseStatus responseStatus) {
	super(message);

	Preconditions.checkNotNull(responseStatus);
	responseCode = responseStatus.code();
}
 
Example 12
Source File: RestClientException.java    From flink with Apache License 2.0 4 votes vote down vote up
public RestClientException(String message, Throwable cause, HttpResponseStatus responseStatus) {
	super(message, cause);

	responseCode = responseStatus.code();
}