|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.ungoverned.moduleloader.search.ValidationException
public class ValidationException
This exception is thrown if a module cannot be validated. The module that failed to be validated is recorded, along with the failed import target identifier and version number. If the error was a result of a propagation conflict, then the propagation error flag is set.
ImportSearchPolicy.validate(org.ungoverned.moduleloader.Module)
,
Serialized FormConstructor Summary | |
---|---|
ValidationException(java.lang.String msg,
Module module,
java.lang.Object identifier,
java.lang.Object version,
boolean isPropagation)
Constructs an exception with the specified message, module, import identifier, import version number, and propagation flag. |
Method Summary | |
---|---|
java.lang.Object |
getIdentifier()
Returns the identifier of the import target that could not be resolved. |
Module |
getModule()
Returns the module that was being validated. |
java.lang.Object |
getVersion()
Returns the version number of the import target that could not be resolved. |
boolean |
isPropagationError()
Returns a flag indicating whether the exception was caused by a a propagation conflict. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ValidationException(java.lang.String msg, Module module, java.lang.Object identifier, java.lang.Object version, boolean isPropagation)
Method Detail |
---|
public Module getModule()
public java.lang.Object getIdentifier()
public java.lang.Object getVersion()
public boolean isPropagationError()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |