Package wtf.choco.alchema.crafting
Class RecipeLoadFailureReport
java.lang.Object
wtf.choco.alchema.crafting.RecipeLoadFailureReport
public final class RecipeLoadFailureReport
extends java.lang.Object
Represents a set of information regarding a recipe that failed to load from
Alchema's file system.
- Author:
- Parker Hawke - Choco
-
Constructor Summary
Constructors Constructor Description RecipeLoadFailureReport(@NotNull org.bukkit.NamespacedKey recipeKey, @NotNull java.lang.Throwable exception)
Construct a newRecipeLoadFailureReport
.RecipeLoadFailureReport(@NotNull org.bukkit.NamespacedKey recipeKey, @NotNull java.lang.Throwable exception, @Nullable java.lang.String reason)
Construct a newRecipeLoadFailureReport
. -
Method Summary
Modifier and Type Method Description @NotNull java.lang.Throwable
getException()
Get the exception that was thrown to cause this failure.@Nullable java.lang.String
getReason()
Get the reason message for this failure report.@NotNull org.bukkit.NamespacedKey
getRecipeKey()
Get theNamespacedKey
of the recipe that failed to load.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
RecipeLoadFailureReport
public RecipeLoadFailureReport(@NotNull @NotNull org.bukkit.NamespacedKey recipeKey, @NotNull @NotNull java.lang.Throwable exception, @Nullable @Nullable java.lang.String reason)Construct a newRecipeLoadFailureReport
.- Parameters:
recipeKey
- the key of the recipe that failed to loadexception
- the exception that was thrownreason
- a custom reason for the failure report
-
RecipeLoadFailureReport
public RecipeLoadFailureReport(@NotNull @NotNull org.bukkit.NamespacedKey recipeKey, @NotNull @NotNull java.lang.Throwable exception)Construct a newRecipeLoadFailureReport
.- Parameters:
recipeKey
- the key of the recipe that failed to loadexception
- the exception that was thrown
-
-
Method Details
-
getRecipeKey
@NotNull public @NotNull org.bukkit.NamespacedKey getRecipeKey()Get theNamespacedKey
of the recipe that failed to load.- Returns:
- the recipe key
-
getException
@NotNull public @NotNull java.lang.Throwable getException()Get the exception that was thrown to cause this failure.- Returns:
- the exception
-
getReason
@Nullable public @Nullable java.lang.String getReason()Get the reason message for this failure report.- Returns:
- the reason
-