001/*
002 * Copyright 2008-2014 UnboundID Corp.
003 * All Rights Reserved.
004 */
005/*
006 * Copyright (C) 2008-2014 UnboundID Corp.
007 *
008 * This program is free software; you can redistribute it and/or modify
009 * it under the terms of the GNU General Public License (GPLv2 only)
010 * or the terms of the GNU Lesser General Public License (LGPLv2.1 only)
011 * as published by the Free Software Foundation.
012 *
013 * This program is distributed in the hope that it will be useful,
014 * but WITHOUT ANY WARRANTY; without even the implied warranty of
015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
016 * GNU General Public License for more details.
017 *
018 * You should have received a copy of the GNU General Public License
019 * along with this program; if not, see <http://www.gnu.org/licenses>.
020 */
021package com.unboundid.util.args;
022
023
024
025import com.unboundid.util.LDAPSDKException;
026import com.unboundid.util.NotMutable;
027import com.unboundid.util.ThreadSafety;
028import com.unboundid.util.ThreadSafetyLevel;
029
030
031
032/**
033 * This class defines an exception that may be thrown if a problem occurs while
034 * parsing command line arguments or preparing the argument parser.
035 */
036@NotMutable()
037@ThreadSafety(level=ThreadSafetyLevel.COMPLETELY_THREADSAFE)
038public final class ArgumentException
039       extends LDAPSDKException
040{
041  /**
042   * The serial version UID for this serializable class.
043   */
044  private static final long serialVersionUID = 8353938257797371099L;
045
046
047
048  /**
049   * Creates a new argument exception with the provided message.
050   *
051   * @param  message  The message to use for this exception.
052   */
053  public ArgumentException(final String message)
054  {
055    super(message);
056  }
057
058
059  /**
060   * Creates a new argument exception with the provided message and cause.
061   *
062   * @param  message  The message to use for this exception.
063   * @param  cause    The underlying exception that triggered this exception.
064   */
065  public ArgumentException(final String message, final Throwable cause)
066  {
067    super(message, cause);
068  }
069}