package org.sfc.xml.formats;
import org.xml.sax.SAXException;
/**
* An exception indicating that something went wrong with
* MathMLWriter.
*
* @author Thomas Weise
*/
public class MathMLException extends SAXException
{
/**
* The serial version uid.
*/
private static final long serialVersionUID = 1;
/**
* Create a new MathMLException.
*/
public MathMLException ()
{
super();
}
/**
* Create a new XHTMLException.
*
* @param p_message The error or warning message.
*/
public MathMLException (final String p_message)
{
super(p_message);
}
/**
* Create a new XHTMLException wrapping an existing exception.
*
* <p>The existing exception will be embedded in the new
* one, and its message will become the default message for
* the MathMLException.</p>
*
* @param p_e The exception to be wrapped in a XHTMLException.
*/
public MathMLException (final Exception p_e)
{
super(p_e);
}
/**
* Create a new XHTMLException from an existing exception.
*
* <p>The existing exception will be embedded in the new
* one, but the new exception will have its own message.</p>
*
* @param p_message The detail message.
* @param p_e The exception to be wrapped in a MathMLException.
*/
public MathMLException (final String p_message,
final Exception p_e)
{
super(p_message, p_e);
}
}