Skip to content

Synced issue: RuntimeException should be IllegalArgumentException #4

@StrongestNumber9

Description

@StrongestNumber9

Matcher m = Pattern.compile("\\d+(.\\d+)?").matcher(input);
if (!m.find()) {
throw new RuntimeException("Invalid value given for function memk(). Expected: Positive integer or float, with an optional unit k, m or g. Instead got: " + input);

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions