1 18 19 package org.sablecc.sablecc.exception; 20 21 32 public class InternalException 33 extends RuntimeException { 34 35 36 private static final long serialVersionUID = -4845566874186665747L; 37 38 46 public InternalException( 47 String message) { 48 49 super(message); 50 51 if (message == null) { 52 throw new InternalException("message may not be null"); 53 } 54 } 55 56 67 public InternalException( 68 String message, 69 Throwable cause) { 70 71 super(message, cause); 72 73 if (message == null) { 74 throw new InternalException("message may not be null"); 75 } 76 77 if (cause == null) { 78 throw new InternalException("cause may not be null"); 79 } 80 } 81 82 } 83 | Popular Tags |