Skip to content

Commit

Permalink
exception message
Browse files Browse the repository at this point in the history
  • Loading branch information
KatKatKateryna committed Jun 26, 2024
1 parent 4129e5b commit 6caefb3
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,11 @@ public ACG.GeometryType GetLayerGeometryType(VectorLayer target)
GISLayerGeometryType.POLYLINE => ACG.GeometryType.Polyline,
GISLayerGeometryType.MULTIPATCH => ACG.GeometryType.Multipatch,
GISLayerGeometryType.POLYGON3D => ACG.GeometryType.Multipatch,
_ => throw new ArgumentOutOfRangeException($"{originalGeomType}"),
_
=> throw new ArgumentOutOfRangeException(
nameof(target),
$"Geometry type '{originalGeomType}' is not recognized."
),
};
}
}

0 comments on commit 6caefb3

Please sign in to comment.