StringConcatException.java revision 13571:8faf1aec77a9
1336809Sdim/*
2336809Sdim * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
3353358Sdim * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4353358Sdim *
5353358Sdim * This code is free software; you can redistribute it and/or modify it
6336809Sdim * under the terms of the GNU General Public License version 2 only, as
7336809Sdim * published by the Free Software Foundation.
8336809Sdim *
9336809Sdim * This code is distributed in the hope that it will be useful, but WITHOUT
10336809Sdim * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11336809Sdim * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
12336809Sdim * version 2 for more details (a copy is included in the LICENSE file that
13336809Sdim * accompanied this code).
14336809Sdim *
15336809Sdim * You should have received a copy of the GNU General Public License version
16336809Sdim * 2 along with this work; if not, write to the Free Software Foundation,
17336809Sdim * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18336809Sdim *
19336809Sdim * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20336809Sdim * or visit www.oracle.com if you need additional information or have any
21336809Sdim * questions.
22336809Sdim */
23336809Sdim
24336809Sdimpackage java.lang.invoke;
25336809Sdim
26336809Sdim/**
27336809Sdim * StringConcatException is thrown by {@link StringConcatFactory} when linkage
28336809Sdim * invariants are violated.
29336809Sdim *
30336809Sdim * @since 9
31336809Sdim */
32336809Sdimpublic class StringConcatException extends Exception {
33336809Sdim    private static final long serialVersionUID = 292L + 9L;
34336809Sdim
35336809Sdim    /**
36336809Sdim     * Constructs an exception with a message
37336809Sdim     * @param msg exception message
38336809Sdim     */
39336809Sdim    public StringConcatException(String msg) {
40336809Sdim        super(msg);
41336809Sdim    }
42336809Sdim
43336809Sdim    /**
44336809Sdim     * Constructs an exception with a message and a linked throwable
45336809Sdim     * @param msg   exception message
46336809Sdim     * @param cause throwable cause
47336809Sdim     */
48336809Sdim    public StringConcatException(String msg, Throwable cause) {
49336809Sdim        super(msg, cause);
50336809Sdim    }
51336809Sdim}
52336809Sdim