~ubuntu-branches/ubuntu/precise/classpath/precise

« back to all changes in this revision

Viewing changes to java/awt/event/InvocationEvent.java

  • Committer: Bazaar Package Importer
  • Author(s): Michael Koch
  • Date: 2006-05-27 16:11:15 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20060527161115-h6e39eposdt5snb6
Tags: 2:0.91-3
* Install header files to /usr/include/classpath.
* debian/control: classpath: Conflict with jamvm < 1.4.3 and
  cacao < 0.96 (Closes: #368172).

Show diffs side-by-side

added added

removed removed

Lines of Context:
107
107
  private Exception exception;
108
108
 
109
109
  /**
 
110
   * This is the caught Throwable thrown in the <code>run()</code> method.
 
111
   * It is null if throwables are ignored, the run method hasn't completed, 
 
112
   * or there were no throwables thrown.
 
113
   */
 
114
  private Throwable throwable;
 
115
  
 
116
  /**
110
117
   * The timestamp when this event was created.
111
118
   *
112
119
   * @see #getWhen()
183
190
        {
184
191
          runnable.run();
185
192
        }
186
 
      catch (Exception e)
 
193
      catch (Throwable t)
187
194
        {
188
 
          exception = e;
 
195
          throwable = t;
 
196
          if (t instanceof Exception)
 
197
            exception = (Exception)t;
189
198
        }
190
199
    else
191
200
      runnable.run();
211
220
  }
212
221
 
213
222
  /**
 
223
   * Returns a throwable caught while executing the Runnable's run() method.
 
224
   * Null if none was thrown or if this InvocationEvent doesn't catch
 
225
   * throwables.
 
226
   * @return the caught Throwable
 
227
   * @since 1.5
 
228
   */
 
229
  public Throwable getThrowable()
 
230
  {
 
231
    return throwable;
 
232
  }
 
233
  
 
234
  /**
214
235
   * Gets the timestamp of when this event was created.
215
236
   *
216
237
   * @return the timestamp of this event