Package com.unboundid.util.args
Class ArgumentException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.unboundid.util.LDAPSDKException
-
- com.unboundid.util.args.ArgumentException
-
- All Implemented Interfaces:
java.io.Serializable
@NotMutable @ThreadSafety(level=COMPLETELY_THREADSAFE) public final class ArgumentException extends LDAPSDKException
This class defines an exception that may be thrown if a problem occurs while parsing command line arguments or preparing the argument parser.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ArgumentException(java.lang.String message)
Creates a new argument exception with the provided message.ArgumentException(java.lang.String message, java.lang.Throwable cause)
Creates a new argument exception with the provided message and cause.
-
Method Summary
-
Methods inherited from class com.unboundid.util.LDAPSDKException
getExceptionMessage, getExceptionMessage, toString, toString
-
-
-
-
Constructor Detail
-
ArgumentException
public ArgumentException(@NotNull java.lang.String message)
Creates a new argument exception with the provided message.- Parameters:
message
- The message to use for this exception.
-
ArgumentException
public ArgumentException(@NotNull java.lang.String message, @Nullable java.lang.Throwable cause)
Creates a new argument exception with the provided message and cause.- Parameters:
message
- The message to use for this exception.cause
- The underlying exception that triggered this exception.
-
-