ToolchainsParseException (Maven Core 3.9.16 API) JavaScript is disabled on your browser.     Skip navigation links Overview Class Use Tree Deprecated Index Search Help org.apache.maven.toolchain.io ToolchainsParseException Contents  Description Constructor Summary Method Summary Constructor Details ToolchainsParseException(String, int, int) ToolchainsParseException(String, int, int, Throwable) Method Details getLineNumber() getColumnNumber() Hide sidebar  Show sidebar Class ToolchainsParseException java.lang.Object java.lang.Throwable java.lang.Exception java.io.IOException org.apache.maven.toolchain.io.ToolchainsParseException All Implemented Interfaces: Serializable public class ToolchainsParseException extends IOException Signals a failure to parse the toolchains due to invalid syntax (e.g. non-wellformed XML or unknown elements). Since: 3.3.0 Author: Robert Scholte See Also: Serialized Form Constructor Summary Constructors Constructor Description ToolchainsParseException(String message, int lineNumber, int columnNumber) Creates a new parser exception with the specified details. ToolchainsParseException(String message, int lineNumber, int columnNumber, Throwable cause) Creates a new parser exception with the specified details. Method Summary All MethodsInstance MethodsConcrete Methods Modifier and Type Method Description int getColumnNumber() Gets the one-based index of the column containing the error. int getLineNumber() Gets the one-based index of the line containing the error. Methods inherited from class Throwable addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString Methods inherited from class Object clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait Constructor Details ToolchainsParseException public ToolchainsParseException(String message, int lineNumber, int columnNumber) Creates a new parser exception with the specified details. Parameters: message - The error message, may be null. lineNumber - The one-based index of the line containing the error or -1 if unknown. columnNumber - The one-based index of the column containing the error or -1 if unknown. ToolchainsParseException public ToolchainsParseException(String message, int lineNumber, int columnNumber, Throwable cause) Creates a new parser exception with the specified details. Parameters: message - The error message, may be null. lineNumber - The one-based index of the line containing the error or -1 if unknown. columnNumber - The one-based index of the column containing the error or -1 if unknown. cause - The nested cause of this error, may be null. Method Details getLineNumber public int getLineNumber() Gets the one-based index of the line containing the error. Returns: The one-based index of the line containing the error or a non-positive value if unknown. getColumnNumber public int getColumnNumber() Gets the one-based index of the column containing the error. Returns: The one-based index of the column containing the error or non-positive value if unknown. Copyright © 2001–2026 The Apache Software Foundation. All rights reserved.