List of usage examples for javax.xml.crypto NoSuchMechanismException NoSuchMechanismException
public NoSuchMechanismException()
From source file:ffx.potential.ForceFieldEnergy.java
/** * Overwrites current esvSystem if present. * Multiple ExtendedSystems is possible but unnecessary; add all ESVs to one system (per FFE, at least). * @param system /* ww w . j a va 2s . c o m*/ */ public void attachExtendedSystem(ExtendedSystem system) { if (system == null) { throw new IllegalArgumentException(); } esvTerm = true; esvSystem = system; if (vanderWaalsTerm) { if (vanderWaals == null) { logger.warning("Null vdW during ESV setup."); } vanderWaals.attachExtendedSystem(system); } if (multipoleTerm) { if (particleMeshEwald == null) { throw new NoSuchMechanismException(); } if (!(particleMeshEwald instanceof ParticleMeshEwaldQI)) { logger.severe("Extended systems can attach only to Quasi-Internal PME. Try -Dpme-qi=true."); } ((ParticleMeshEwaldQI) particleMeshEwald).attachExtendedSystem(system); } reInit(); }