propagate exceptions up to the caller

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@474466 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Davies 2006-11-13 19:50:31 +00:00
parent 43d2ef0469
commit b376ce24ef
2 changed files with 3 additions and 2 deletions

View File

@ -40,7 +40,7 @@ public class QueueView extends DestinationView implements QueueViewMBean{
return OpenTypeSupport.convert(rc);
}
public void purge(){
public void purge() throws Exception{
((Queue) destination).purge();
}

View File

@ -61,8 +61,9 @@ public interface QueueViewMBean extends DestinationViewMBean {
/**
* Removes all of the messages in the queue.
* @throws Exception
*/
public void purge();
public void purge() throws Exception;
/**
* Copies a given message to another destination.