001
002 /*
003 * Copyright (C) 2011 Archie L. Cobbs. All rights reserved.
004 *
005 * $Id: SelfValidationException.java 63 2011-03-22 15:07:12Z archie.cobbs $
006 */
007
008 package org.dellroad.stuff.validation;
009
010 /**
011 * Exception that can be thrown by {@link SelfValidating#checkValid}.
012 *
013 * <p>
014 * Instances will be automatically caught and converted into a constraint violation using the exception's message
015 * if any, otherwise the default message.
016 * </p>
017 *
018 * @see SelfValidating
019 */
020 @SuppressWarnings("serial")
021 public class SelfValidationException extends Exception {
022
023 public SelfValidationException() {
024 }
025
026 public SelfValidationException(String message) {
027 super(message);
028 }
029
030 public SelfValidationException(Throwable cause) {
031 super(cause);
032 }
033
034 public SelfValidationException(String message, Throwable cause) {
035 super(message, cause);
036 }
037 }
038