< prev index next >

src/java.base/share/classes/java/lang/reflect/MalformedParametersException.java

Print this page




  36  * <ul>
  37  * <li> The number of parameters (parameter_count) is wrong for the method
  38  * <li> A constant pool index is out of bounds.
  39  * <li> A constant pool index does not refer to a UTF-8 entry
  40  * <li> A parameter's name is "", or contains an illegal character
  41  * <li> The flags field contains an illegal flag (something other than
  42  *     FINAL, SYNTHETIC, or MANDATED)
  43  * </ul>
  44  *
  45  * See {@link java.lang.reflect.Executable#getParameters} for more
  46  * information.
  47  *
  48  * @see java.lang.reflect.Executable#getParameters
  49  * @since 1.8
  50  */
  51 public class MalformedParametersException extends RuntimeException {
  52 
  53     /**
  54      * Version for serialization.
  55      */

  56     private static final long serialVersionUID = 20130919L;
  57 
  58     /**
  59      * Create a {@code MalformedParametersException} with an empty
  60      * reason.
  61      */
  62     public MalformedParametersException() {}
  63 
  64     /**
  65      * Create a {@code MalformedParametersException}.
  66      *
  67      * @param reason The reason for the exception.
  68      */
  69     public MalformedParametersException(String reason) {
  70         super(reason);
  71     }
  72 }


  36  * <ul>
  37  * <li> The number of parameters (parameter_count) is wrong for the method
  38  * <li> A constant pool index is out of bounds.
  39  * <li> A constant pool index does not refer to a UTF-8 entry
  40  * <li> A parameter's name is "", or contains an illegal character
  41  * <li> The flags field contains an illegal flag (something other than
  42  *     FINAL, SYNTHETIC, or MANDATED)
  43  * </ul>
  44  *
  45  * See {@link java.lang.reflect.Executable#getParameters} for more
  46  * information.
  47  *
  48  * @see java.lang.reflect.Executable#getParameters
  49  * @since 1.8
  50  */
  51 public class MalformedParametersException extends RuntimeException {
  52 
  53     /**
  54      * Version for serialization.
  55      */
  56     @java.io.Serial
  57     private static final long serialVersionUID = 20130919L;
  58 
  59     /**
  60      * Create a {@code MalformedParametersException} with an empty
  61      * reason.
  62      */
  63     public MalformedParametersException() {}
  64 
  65     /**
  66      * Create a {@code MalformedParametersException}.
  67      *
  68      * @param reason The reason for the exception.
  69      */
  70     public MalformedParametersException(String reason) {
  71         super(reason);
  72     }
  73 }
< prev index next >