class ResponseError extends Response {

    public static ResponseError from(Sc2Api.Response sc2ApiResponse) {
        if (!isSet(sc2ApiResponse) || sc2ApiResponse.getErrorCount() == 0) {
            throw new IllegalArgumentException("provided argument doesn't have error response");
        }
        return new ResponseError(sc2ApiResponse.getErrorList(), sc2ApiResponse.getStatus(), sc2ApiResponse.getId());
    }

    private  ResponseError(List<String> errors, Sc2Api.Status status, int id);

}