Files
VisualSapfor/src/Visual_DVM_2021/Passes/PassState.java
2023-11-19 02:12:44 +03:00

34 lines
1.1 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package Visual_DVM_2021.Passes;
public enum PassState {
Inactive,
Interrupted,
CantStart,
Failed,
Crushed,
Done,
ExternalCrushed //исключение за рамками Action. неординарная ситуация.
;
public String getDescription() {
switch (this) {
case ExternalCrushed:
return "внешнее исключение";
case Inactive:
return "неактивен";
//-----------------------------------------
case Interrupted:
return "остановлен пользователем";
case CantStart:
return "не может быть выполнен";
case Failed:
return "завершён с ошибками";
case Crushed:
return "завершён с исключением";
case Done:
return "успешно выполнен";
default:
break;
}
return "";
}
}