Interface Try
public interface Try
A load step whose failure should be reported as an
InvalidSkilltreeException naming the part that failed.-
Method Summary
Modifier and TypeMethodDescriptionvoidtryLoad()Performs the load.static voidRuns a load step, rethrowing any failure as anInvalidSkilltreeExceptionthat namespart.
-
Method Details
-
tryToLoad
Runs a load step, rethrowing any failure as anInvalidSkilltreeExceptionthat namespart.- Parameters:
part- the section or filename being loaded, used in the error messageloader- the step to run
-
tryLoad
void tryLoad()Performs the load. Any exception is wrapped bytryToLoad(java.lang.String, de.Keyle.MyPet.api.util.configuration.Try).
-