Lines Matching refs:errorMessage
47 * @param errorMessage the exception message to use if the check fails; will
52 public static <T> T checkNotNull(final T reference, final Object errorMessage) {
54 throw new NullPointerException(String.valueOf(errorMessage));
88 * @param errorMessage the exception message to use if the check fails
92 public static int checkArgumentNonnegative(final int value, final String errorMessage) {
94 throw new IllegalArgumentException(errorMessage);
104 * @param errorMessage the exception message to use if the check fails
108 public static long checkArgumentNonnegative(final long value, final String errorMessage) {
110 throw new IllegalArgumentException(errorMessage);
120 * @param errorMessage the exception message to use if the check fails
124 public static int checkArgumentPositive(final int value, final String errorMessage) {
126 throw new IllegalArgumentException(errorMessage);