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