001 package org.springframework.richclient.samples.showcase.exceptionhandling;
002
003 import org.springframework.richclient.exceptionhandling.MessagesDialogExceptionHandler;
004
005 /**
006 * Simple exception to use with the {@link MessagesDialogExceptionHandler}.
007 *
008 * @author Jan Hoskens
009 *
010 */
011 public class MessagesDialogException extends RuntimeException {
012
013 public MessagesDialogException() {
014 this("Some message");
015 }
016
017 public MessagesDialogException(String message) {
018 this(message, new UnsupportedOperationException("Something is not supported."));
019 }
020
021 public MessagesDialogException(String message, Throwable cause) {
022 super(message, cause);
023 }
024 }