Normalize Exception methods.

This commit is contained in:
Christian P. MOMON 2014-11-11 07:04:17 +01:00
parent 2876cb65b9
commit 221f6b7792

View file

@ -18,6 +18,8 @@
*/
package fr.devinsy.util.xml;
import org.slf4j.helpers.MessageFormatter;
/**
*
* @author Christian Pierre MOMON (christian.momon@devinsy.fr)
@ -47,4 +49,33 @@ public class XMLBadFormatException extends Exception
{
super(message, exception);
}
/**
*
* @param format
* @param arguments
*/
public XMLBadFormatException(final String format, final Object... arguments)
{
this(MessageFormatter.arrayFormat(format, arguments).getMessage());
}
/**
*
* @param message
* @param cause
*/
public XMLBadFormatException(final String message, final Throwable cause)
{
super(message, cause);
}
/**
*
* @param cause
*/
public XMLBadFormatException(final Throwable cause)
{
super(cause);
}
}