Class UnknownElementMassException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.compomics.util.general.UnknownElementMassException
All Implemented Interfaces:
Serializable

public class UnknownElementMassException
extends Exception
This class implements an Exception, thrown when a MassCalc instance is confronted with an element symbol it cannot retrieve in its element lists.
Author:
Lennart Martens
See Also:
Serialized Form
  • Constructor Details

    • UnknownElementMassException

      public UnknownElementMassException​(String aElement)
      The constructor requires the caller to specify the element which was not recognized.
      Parameters:
      aElement - String with the symbol of the unrecognized element.
  • Method Details

    • getElement

      public String getElement()
      Simple getter for the element variable.
      Returns:
      String the symbol for the unknown element.