Files
moonlight-android/app/src/main/java/com/limelight/nvstream/http/HostHttpResponseException.java
2023-02-11 14:25:54 -06:00

29 lines
698 B
Java

package com.limelight.nvstream.http;
import java.io.IOException;
public class HostHttpResponseException extends IOException {
private static final long serialVersionUID = 1543508830807804222L;
private int errorCode;
private String errorMsg;
public HostHttpResponseException(int errorCode, String errorMsg) {
this.errorCode = errorCode;
this.errorMsg = errorMsg;
}
public int getErrorCode() {
return errorCode;
}
public String getErrorMessage() {
return errorMsg;
}
@Override
public String getMessage() {
return "Host PC returned error: "+errorMsg+" (Error code: "+errorCode+")";
}
}