Class ClassMetadataNotFoundException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.spongepowered.asm.mixin.throwables.MixinException
org.spongepowered.asm.mixin.throwables.ClassMetadataNotFoundException
- All Implemented Interfaces:
java.io.Serializable
public class ClassMetadataNotFoundException extends MixinException
Since it's inconvenient to throw the (checked)
ClassNotFoundException
this exception can be selectively thrown when ClassInfo.forName(java.lang.String)
returns null (indicating class couldn't be loaded or was not found)
in situations where we actually care about it failing and want to throw
something.- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description ClassMetadataNotFoundException(java.lang.String message)ClassMetadataNotFoundException(java.lang.String message, java.lang.Throwable cause)ClassMetadataNotFoundException(java.lang.String message, java.lang.Throwable cause, ActivityStack context)ClassMetadataNotFoundException(java.lang.String message, ActivityStack context)ClassMetadataNotFoundException(java.lang.Throwable cause)ClassMetadataNotFoundException(java.lang.Throwable cause, ActivityStack context) -
Method Summary
Methods inherited from class org.spongepowered.asm.mixin.throwables.MixinException
getMessage, prependMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
ClassMetadataNotFoundException
public ClassMetadataNotFoundException(java.lang.String message) -
ClassMetadataNotFoundException
-
ClassMetadataNotFoundException
public ClassMetadataNotFoundException(java.lang.Throwable cause) -
ClassMetadataNotFoundException
-
ClassMetadataNotFoundException
public ClassMetadataNotFoundException(java.lang.String message, java.lang.Throwable cause) -
ClassMetadataNotFoundException
public ClassMetadataNotFoundException(java.lang.String message, java.lang.Throwable cause, ActivityStack context)
-