1 package java.lang.invoke; 2 3 /** 4 * StringConcatException is thrown by {@link StringConcatFactory} when linkage 5 * invariants are violated. 6 */ 7 public class StringConcatException extends Exception { 8 private static final long serialVersionUID = 292L + 9L; 9 10 /** 11 * Constructs an exception with a message 12 * @param msg exception message 13 */ 14 public StringConcatException(String msg) { 15 super(msg); 16 } 17 18 /** 19 * Constructs an exception with a message and a linked throwable 20 * @param msg exception message 21 * @param cause throwable cause 22 */ 23 public StringConcatException(String msg, Throwable cause) { 24 super(msg, cause); 25 } 26 }