Class UpdateStatus
java.lang.Object
io.github.projectunified.mcserverupdater.UpdateStatus
The update status
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final UpdateStatusFailed to updatestatic final UpdateStatusFailed to create the output filestatic final UpdateStatusThe project is not found or not supportedstatic final UpdateStatusThe output file is out-of-datestatic final UpdateStatusUpdate successfullystatic final UpdateStatusThe output file is up-to-date -
Method Summary
Modifier and TypeMethodDescriptionGet the messageGet the throwablebooleanCheck if the update is successfulstatic UpdateStatusunknownError(Throwable cause) Create an unknown error status
-
Field Details
-
NO_PROJECT
The project is not found or not supported -
FILE_FAILED
Failed to create the output file -
UP_TO_DATE
The output file is up-to-date -
OUT_OF_DATE
The output file is out-of-date -
SUCCESS
Update successfully -
FAILED
Failed to update
-
-
Method Details
-
unknownError
Create an unknown error status- Parameters:
cause- the cause of the error- Returns:
- the unknown error status
-
isSuccessStatus
public boolean isSuccessStatus()Check if the update is successful- Returns:
- true if the update is successful
-
getThrowable
Get the throwable- Returns:
- the throwable, or null if there is no error
-
getMessage
Get the message- Returns:
- the message
-