com.compomics.util.general
Class UnknownElementMassException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by 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 Summary
UnknownElementMassException(String aElement)
          The constructor requires the caller to specify the element which was not recognized.
 
Method Summary
 String getElement()
          Simple getter for the element variable.
 
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

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 Detail

getElement

public String getElement()
Simple getter for the element variable.

Returns:
String the symbol for the unknown element.


Copyright © 2011. All Rights Reserved.