- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
public Pattern waitNotEmptyRegex(){
String read;
Pattern pattern;
while (true) {
try {
try {
read = in.readLine();
if (!read.trim().isEmpty()) {
pattern = Pattern.compile(read);
} else {
context.getOut().write(context.localizKey("console.messages.emptyString") + "\n");
}
} catch (PatternSyntaxException e) {
context.getOut().write(context.localizKey("console.messages.invalidPattern") + "\n");
}
}catch (IOException e){
throw new IllegalStateException(e);
}
}
}
серьезно?
> throw new IllegalStateException(e);
> }
Серьёзно, прям illegal state?
> the Java environment or Java application is not in an appropriate state for the requested operation.
the Java application developer was not in an appropriate state to handle this error properly.