public class ValidationException
extends java.lang.Exception
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.
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public ValidationException(java.lang.String msg, Module module, java.lang.Object identifier, java.lang.Object version, boolean isPropagation)
public Module getModule()
public java.lang.Object getIdentifier()
public java.lang.Object getVersion()
public boolean isPropagationError()