com.turbospaces.http.UnexpectedHttpStatusException Maven / Gradle / Ivy
package com.turbospaces.http;
import java.io.IOException;
import org.apache.http.StatusLine;
@SuppressWarnings("serial")
public class UnexpectedHttpStatusException extends IOException {
public final int code;
public UnexpectedHttpStatusException(StatusLine line) {
super( line.toString() );
this.code = line.getStatusCode();
}
public UnexpectedHttpStatusException(StatusLine line, String message) {
super( line.toString() + " : " + message );
this.code = line.getStatusCode();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy