public class ParseException extends Exception
| Constructor | Description |
|---|---|
ParseException(String message) |
Constructs a new
ParseException with the specified detail message. |
ParseException(Throwable e) |
Constructs a new
ParseException wrapping the specified exception. |
| Modifier and Type | Method | Description |
|---|---|---|
static ParseException |
wrap(Throwable e) |
Converts any exception except
UnsupportedOperationException to a ParseException. if e is an instance of ParseException it
is returned, otherwise a ParseException is created that wraps it. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ParseException(String message)
ParseException with the specified detail message.message - the detail message.public ParseException(Throwable e)
ParseException wrapping the specified exception.e - the Exception to wrap.public static ParseException wrap(Throwable e) throws UnsupportedOperationException
UnsupportedOperationException to a ParseException. if e is an instance of ParseException it
is returned, otherwise a ParseException is created that wraps it.
Note: UnsupportedOperationException are not wrapped. This is to solve a legacy expected exception problem and will be removed in the future.
e - the exception to convert.UnsupportedOperationException - due to legacy expectations. Will be removed in the future.Copyright © 2002-2025 The Apache Software Foundation. All rights reserved.Apache Commons CLI | Issue management | Source repository