Example usage for javax.xml.crypto NoSuchMechanismException NoSuchMechanismException

List of usage examples for javax.xml.crypto NoSuchMechanismException NoSuchMechanismException

Introduction

In this page you can find the example usage for javax.xml.crypto NoSuchMechanismException NoSuchMechanismException.

Prototype

public NoSuchMechanismException() 

Source Link

Document

Constructs a new NoSuchMechanismException with null as its detail message.

Usage

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();
}