src/java.base/share/classes/java/lang/IllegalArgumentException.java
branchdatagramsocketimpl-branch
changeset 58678 9cf78a70fa4f
parent 47216 71c04702a3d5
child 58679 9c3209ff7550
equal deleted inserted replaced
58677:13588c901957 58678:9cf78a70fa4f
     1 /*
     1 /*
     2  * Copyright (c) 1994, 2012, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1994, 2019, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    33  * @since   1.0
    33  * @since   1.0
    34  */
    34  */
    35 public
    35 public
    36 class IllegalArgumentException extends RuntimeException {
    36 class IllegalArgumentException extends RuntimeException {
    37     /**
    37     /**
    38      * Constructs an <code>IllegalArgumentException</code> with no
    38      * Constructs an {@code IllegalArgumentException} with no
    39      * detail message.
    39      * detail message.
    40      */
    40      */
    41     public IllegalArgumentException() {
    41     public IllegalArgumentException() {
    42         super();
    42         super();
    43     }
    43     }
    44 
    44 
    45     /**
    45     /**
    46      * Constructs an <code>IllegalArgumentException</code> with the
    46      * Constructs an {@code IllegalArgumentException} with the
    47      * specified detail message.
    47      * specified detail message.
    48      *
    48      *
    49      * @param   s   the detail message.
    49      * @param   s   the detail message.
    50      */
    50      */
    51     public IllegalArgumentException(String s) {
    51     public IllegalArgumentException(String s) {
    54 
    54 
    55     /**
    55     /**
    56      * Constructs a new exception with the specified detail message and
    56      * Constructs a new exception with the specified detail message and
    57      * cause.
    57      * cause.
    58      *
    58      *
    59      * <p>Note that the detail message associated with <code>cause</code> is
    59      * <p>Note that the detail message associated with {@code cause} is
    60      * <i>not</i> automatically incorporated in this exception's detail
    60      * <i>not</i> automatically incorporated in this exception's detail
    61      * message.
    61      * message.
    62      *
    62      *
    63      * @param  message the detail message (which is saved for later retrieval
    63      * @param  message the detail message (which is saved for later retrieval
    64      *         by the {@link Throwable#getMessage()} method).
    64      *         by the {@link Throwable#getMessage()} method).
    88      */
    88      */
    89     public IllegalArgumentException(Throwable cause) {
    89     public IllegalArgumentException(Throwable cause) {
    90         super(cause);
    90         super(cause);
    91     }
    91     }
    92 
    92 
       
    93     @java.io.Serial
    93     private static final long serialVersionUID = -5365630128856068164L;
    94     private static final long serialVersionUID = -5365630128856068164L;
    94 }
    95 }