1 17 18 package org.sablecc.sablecc.exception; 19 20 public class InvalidArgumentException 21 extends Exception { 22 23 private static final long serialVersionUID = 2728824423324590713L; 24 25 public InvalidArgumentException( 26 String message) { 27 28 super(message); 29 30 if (message == null) { 31 throw new InternalException("message may not be null"); 32 } 33 } 34 35 public InvalidArgumentException( 36 String message, 37 Throwable cause) { 38 39 super(message, cause); 40 41 if (message == null) { 42 throw new InternalException("message may not be null"); 43 } 44 45 if (cause == null) { 46 throw new InternalException("cause may not be null"); 47 } 48 } 49 50 } 51 | Popular Tags |