This commit is contained in:
parent
b3085264ee
commit
bb255e3612
|
@ -1,15 +1,31 @@
|
||||||
package dev.frogmc.frogloader.api.exception;
|
package dev.frogmc.frogloader.api.exception;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Exception if an extension cannot be resolved or instantiated
|
||||||
|
*/
|
||||||
public class ModExtensionResolutionException extends Exception {
|
public class ModExtensionResolutionException extends Exception {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Instantiate this exception
|
||||||
|
* @param message A message describing this exception
|
||||||
|
*/
|
||||||
public ModExtensionResolutionException(String message) {
|
public ModExtensionResolutionException(String message) {
|
||||||
super(message);
|
super(message);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Instantiate this exception
|
||||||
|
* @param cause The cause of this exception
|
||||||
|
*/
|
||||||
public ModExtensionResolutionException(Throwable cause) {
|
public ModExtensionResolutionException(Throwable cause) {
|
||||||
super(cause);
|
super(cause);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Instantiate this exception
|
||||||
|
* @param message A message describing this exception
|
||||||
|
* @param cause The cause of this exception
|
||||||
|
*/
|
||||||
public ModExtensionResolutionException(String message, Throwable cause) {
|
public ModExtensionResolutionException(String message, Throwable cause) {
|
||||||
super(message, cause);
|
super(message, cause);
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,6 +4,11 @@ import java.util.Collection;
|
||||||
|
|
||||||
import org.jetbrains.annotations.Nullable;
|
import org.jetbrains.annotations.Nullable;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Represents dependencies declared by a mod at runtime.
|
||||||
|
* @see ModProperties
|
||||||
|
* @see ModExtensions
|
||||||
|
*/
|
||||||
public interface ModDependencies {
|
public interface ModDependencies {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue