Skip to content

Commit bdc3be7

Browse files
committed
Throw proper exception in case of unsupported ScaleType
1 parent 10d741b commit bdc3be7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

circleimageview/src/main/java/de/hdodenhof/circleimageview/CircleImageView.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public ScaleType getScaleType() {
8282
@Override
8383
public void setScaleType(ScaleType scaleType) {
8484
if (scaleType != SCALE_TYPE) {
85-
throw new RuntimeException(); // TODO
85+
throw new IllegalArgumentException(String.format("ScaleType %s not supported.", scaleType));
8686
}
8787
}
8888

0 commit comments

Comments
 (0)