Class UpdateStatus
java.lang.Object
io.github.projectunified.mcserverupdater.UpdateStatus
The update status
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final UpdateStatus
Failed to updatestatic final UpdateStatus
Failed to create the output filestatic final UpdateStatus
The project is not found or not supportedstatic final UpdateStatus
The output file is out-of-datestatic final UpdateStatus
Update successfullystatic final UpdateStatus
The output file is up-to-date -
Method Summary
Modifier and TypeMethodDescriptionGet the messageGet the throwableboolean
Check if the update is successfulstatic UpdateStatus
unknownError
(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
-