/** * Creates a new configuration format exception. * <p> * {@link #UNKNOWN_LOCATION} is a legal value for both <code>line</code> and <code>column</code>. * See the documentation of {@link #getLineNumber() getLineNumber} and * {@link #getColumnNumber() getColumnNumber} for more information on location conventions. * </p> * @param message the error message. * @param line line at which the error occurred. * @param column column at which the error occurred. */ public ConfigurationFormatException(String message, int line, int column) { this(message); setLocationInformation(line, column); }
/** * Creates a new configuration format exception 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> * <p> * {@link #UNKNOWN_LOCATION} is a legal value for both <code>line</code> and <code>column</code>. * See the documentation of {@link #getLineNumber() getLineNumber} and * {@link #getColumnNumber() getColumnNumber} for more information on location conventions. * </p> * @param message the detail message. * @param cause the exception to be wrapped in a <code>ConfigurationFormatException</code>. * @param line line at which the error occurred. * @param column column at which the error occurred. */ public ConfigurationFormatException(String message, Throwable cause, int line, int column) { this(message, cause); setLocationInformation(line, column); }
/** * Creates a new configuration format exception 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 <code>ConfigurationFormatException</code>. * </p> * <p> * {@link #UNKNOWN_LOCATION} is a legal value for both <code>line</code> and <code>column</code>. * See the documentation of {@link #getLineNumber() getLineNumber} and * {@link #getColumnNumber() getColumnNumber} for more information on location conventions. * </p> * @param cause the exception to be wrapped in a <code>ConfigurationFormatException</code>. * @param line line at which the error occurred. * @param column column at which the error occurred. */ public ConfigurationFormatException(Throwable cause, int line, int column) { this(cause); setLocationInformation(line, column); }