refactor errorhandler
This commit is contained in:
@@ -29,7 +29,8 @@ import java.net.URLEncoder;
|
||||
|
||||
import org.json.JSONArray;
|
||||
import org.json.JSONObject;
|
||||
import yugecin.opsudance.core.errorhandling.ErrorHandler;
|
||||
|
||||
import static yugecin.opsudance.core.errorhandling.ErrorHandler.*;
|
||||
|
||||
/**
|
||||
* Download server: http://osu.mengsky.net/
|
||||
@@ -98,7 +99,7 @@ public class MengSkyServer extends DownloadServer {
|
||||
}
|
||||
this.totalResults = resultCount;
|
||||
} catch (MalformedURLException | UnsupportedEncodingException e) {
|
||||
ErrorHandler.error(String.format("Problem loading result list for query '%s'.", query), e).show();
|
||||
explode(String.format("Problem loading result list for query '%s'.", query), e, DEFAULT_OPTIONS);
|
||||
}
|
||||
return nodes;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user