Skip to content
Snippets Groups Projects
Commit a23b2057 authored by tpylak's avatar tpylak
Browse files

LMS-2081 throw exception when well location coordinates are incorrect

SVN: 20163
parent c739693f
No related branches found
No related tags found
No related merge requests found
......@@ -202,8 +202,14 @@ public class WellLocation implements ISerializable
public WellLocation(int row, int column)
{
assert row > 0 : createNonPositiveErrorMsg("row", row);
assert column > 0 : createNonPositiveErrorMsg("column", column);
if (row <= 0)
{
throw new IllegalArgumentException(createNonPositiveErrorMsg("row", row));
}
if (column <= 0)
{
throw new IllegalArgumentException(createNonPositiveErrorMsg("column", column));
}
this.row = row;
this.column = column;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment