Improve UX for startup failures

Show a proper error message when database is too new or too old.
This commit is contained in:
Torsten Grote
2018-02-26 12:59:25 -03:00
parent 05210257a0
commit 46406d8d1a
5 changed files with 49 additions and 35 deletions

View File

@@ -21,7 +21,12 @@ public interface LifecycleManager {
* The result of calling {@link #startServices(String)}.
*/
enum StartResult {
ALREADY_RUNNING, DB_ERROR, SERVICE_ERROR, SUCCESS
ALREADY_RUNNING,
DB_ERROR,
DATA_TOO_OLD_ERROR,
DATA_TOO_NEW_ERROR,
SERVICE_ERROR,
SUCCESS
}
/**