Package io.github.slimjar.exceptions
Class SlimJarException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.github.slimjar.exceptions.SlimJarException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
DownloaderException,InjectorException,ModuleExtractorException,NotComparableDependencyException,OutputWriterException,RelocatorException,ResolutionException
public sealed class SlimJarException
extends RuntimeException
permits DownloaderException, InjectorException, ModuleExtractorException, NotComparableDependencyException, OutputWriterException, RelocatorException, ResolutionException
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSlimJarException(@NotNull String message) SlimJarException(@NotNull String message, @NotNull Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptionvoidSince we know that some exceptions are caused by interrupts, we can use this method to quickly reinstate the interrupt.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
SlimJarException
-
SlimJarException
-
-
Method Details
-
checkInterrupted
public void checkInterrupted()Since we know that some exceptions are caused by interrupts, we can use this method to quickly reinstate the interrupt.
-