Throw Exception in checkFileIntegrity on failure
DownloadWorker didn't check the string return value which should detect failed downloads. Throwing (checked) exceptions simplifies error handling in DownloadWorker.
This commit is contained in:
parent
f0df9f94d4
commit
02eddeff81
3 changed files with 13 additions and 22 deletions
|
|
@ -20,7 +20,7 @@ public final class DirectWeaver extends ByteDataWriter
|
|||
|
||||
private int size = 0;
|
||||
|
||||
public DirectWeaver( StatCoderContext bc, DataBuffers dataBuffers, int lonIdx, int latIdx, int divisor, TagValueValidator wayValidator, WaypointMatcher waypointMatcher, OsmNodesMap hollowNodes ) throws Exception
|
||||
public DirectWeaver( StatCoderContext bc, DataBuffers dataBuffers, int lonIdx, int latIdx, int divisor, TagValueValidator wayValidator, WaypointMatcher waypointMatcher, OsmNodesMap hollowNodes )
|
||||
{
|
||||
super( null );
|
||||
int cellsize = 1000000 / divisor;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue