001 package org.springframework.richclient.samples.showcase.exceptionhandling;
002
003 import org.springframework.richclient.command.ActionCommand;
004 import org.springframework.richclient.exceptionhandling.MessagesDialogExceptionHandler;
005
006 /**
007 * Command throwing the specific {@link MessagesDialogException} that should be
008 * caught by the {@link MessagesDialogExceptionHandler}.
009 *
010 * @author Jan Hoskens
011 *
012 */
013 public class MessagesDialogExceptionHandlerCommand extends ActionCommand {
014
015 @Override
016 protected void doExecuteCommand() {
017 throw new MessagesDialogException();
018 }
019
020 }