From 513a71ad7c6874bc530a3fc9bad17ffd27d600d8 Mon Sep 17 00:00:00 2001 From: mdb Date: Thu, 7 Dec 2000 05:41:30 +0000 Subject: [PATCH] Allow tasks to throw an exception so that it can be caught and passed to the task observer. git-svn-id: https://samskivert.googlecode.com/svn/trunk@24 6335cc39-0255-0410-8fd6-9bcaacd3b74c --- .../samskivert/src/java/com/samskivert/swing/util/Task.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/samskivert/src/java/com/samskivert/swing/util/Task.java b/projects/samskivert/src/java/com/samskivert/swing/util/Task.java index bc7a4f89..fdc581a1 100644 --- a/projects/samskivert/src/java/com/samskivert/swing/util/Task.java +++ b/projects/samskivert/src/java/com/samskivert/swing/util/Task.java @@ -1,5 +1,5 @@ // -// $Id: Task.java,v 1.1 2000/12/06 03:25:19 mdb Exp $ +// $Id: Task.java,v 1.2 2000/12/07 05:41:30 mdb Exp $ package com.samskivert.swing.util; @@ -18,7 +18,7 @@ public interface Task * This method is called by the task master to invoke the task. The * task should run to completion and return some value. */ - public Object invoke (); + public Object invoke () throws Exception; /** * This method is called by the task master when it has received a