src/jdk.jfr/share/classes/jdk/jfr/internal/tool/UserDataException.java
author mgronlun
Wed, 30 Oct 2019 19:43:52 +0100
changeset 58863 c16ac7a2eba4
parent 52850 f527b24990d7
permissions -rw-r--r--
8226511: Implement JFR Event Streaming Reviewed-by: egahlin, mseledtsov, mgronlun Contributed-by: erik.gahlin@oracle.com, mikhailo.seledtsov@oracle.com, markus.gronlund@oracle.com
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
52850
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
     1
/*
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
     2
 * Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
     4
 *
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
    10
 *
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
    15
 * accompanied this code).
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
    16
 *
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
    20
 *
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
    23
 * questions.
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
    24
 */
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
    25
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
    26
package jdk.jfr.internal.tool;
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
    27
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
    28
/**
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
    29
 * Exception that is thrown if there is something wrong with the input, for instance
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
    30
 * a file that can't be read or a numerical value that is out of range.
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
    31
 * <p>
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
    32
 * When this exception is thrown, a user will typically not want to see the
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
    33
 * command line syntax, but instead information about what was wrong with the
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
    34
 * input.
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
    35
 */
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
    36
final class UserDataException extends Exception {
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
    37
    private static final long serialVersionUID = 6656457380115167810L;
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
    38
    /**
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
    39
     * The error message.
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
    40
     *
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
    41
     * The first letter should not be capitalized, so a context can be printed prior
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
    42
     * to the error message.
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
    43
     *
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
    44
     * @param errorMessage
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
    45
     */
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
    46
    public UserDataException(String errorMessage) {
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
    47
        super(errorMessage);
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
    48
    }
f527b24990d7 8205516: JFR tool
egahlin
parents:
diff changeset
    49
}