Package com.compomics.util.general
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 Summary
Constructors Constructor Description UnknownElementMassException(String aElement)
The constructor requires the caller to specify the element which was not recognized. -
Method Summary
Modifier and Type Method Description String
getElement()
Simple getter for the element variable.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
UnknownElementMassException
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
Simple getter for the element variable.- Returns:
- String the symbol for the unknown element.
-