Class MissingDescriptorException
-
- All Implemented Interfaces:
-
java.io.Serializable
public final class MissingDescriptorException extends IOException
A jar does not contain the descriptor a scanner reads.
This is a normal outcome, not a failure. Every scanner is handed the whole mods-directory, so a Fabric jar reaching the Forge scanner — or any jar reaching the Quilt scan of a Quilt pack, which deliberately runs both scanners over everything — simply has nothing for that scanner to read. It is a distinct type precisely so DescriptorScanner can tell it apart from a genuine failure and log it at DEBUG instead of shouting about a mod nobody needs to fix.
Extends IOException so the
@Throwscontract of the descriptor readers is unchanged and an existingcatch (IOException)keeps working.
-
-
Field Summary
Fields Modifier and Type Field Description private final Stringdescriptorprivate final Filejarprivate final Stringmessageprivate final Throwablecauseprivate final StringlocalizedMessageprivate final Array<Throwable>suppressedprivate Array<StackTraceElement>stackTrace
-
Constructor Summary
Constructors Constructor Description MissingDescriptorException(String descriptor, File jar)
-
Method Summary
Modifier and Type Method Description final StringgetDescriptor()final FilegetJar()StringgetMessage()ThrowablegetCause()-
Methods inherited from class kotlin.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getDescriptor
final String getDescriptor()
-
getMessage
String getMessage()
-
-
-
-