public static interface RuntimeMetaData.Listener
Modifier and Type | Method and Description |
---|---|
void |
reportVersionMismatch(RuntimeMetaData.VersionMismatchException ex)
Report a version mismatch which was detected by
RuntimeMetaData.checkVersion(java.lang.String, java.lang.String) . |
void reportVersionMismatch(@NotNull RuntimeMetaData.VersionMismatchException ex) throws RuntimeMetaData.VersionMismatchException
RuntimeMetaData.checkVersion(java.lang.String, java.lang.String)
.
Implementations of this method may, but are not required to, throw the provided exception. Note that if a registered listener throws the provided exception during the handling of this event, the following will be impacted:
RuntimeMetaData.checkVersion(java.lang.String, java.lang.String)
will be
unusable due to throwing an exception in a static initializer
block.RuntimeMetaData.DefaultListener
instance
is always the last listener called (unless it is unregistered), it
will not affect the execution of any other registered listeners, even
in the case where it throws an exception.ex
- a RuntimeMetaData.VersionMismatchException
instance containing
detailed information about the specific version mismatch detectedRuntimeMetaData.VersionMismatchException