forked from wothers/items_from_text
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from ErikSteiner/feature/2.0.0_1.19.2
Update Items from Test to 1.19.2
- Loading branch information
Showing
26 changed files
with
673 additions
and
347 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.1-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package wothers.ift; | ||
|
||
public class ItemLoadException extends RuntimeException { | ||
public ItemLoadException(String namespaceName, String itemName) { | ||
super(getErrorMessage(namespaceName, itemName, null)); | ||
} | ||
|
||
public ItemLoadException(String namespaceName, String itemName, String reason) { | ||
super(getErrorMessage(namespaceName, itemName, reason)); | ||
} | ||
|
||
public static String getErrorMessage(String namespaceName, String itemName, String reason) { | ||
if (reason == null) return String.format("Failed to load item: %s:%s", namespaceName, itemName); | ||
return String.format("Failed to load item: %s:%s - %s", namespaceName, itemName, reason); | ||
} | ||
} |
Oops, something went wrong.