/[svn]/jsampler/trunk/src/org/jsampler/task/EnhancedTask.java
ViewVC logotype

Diff of /jsampler/trunk/src/org/jsampler/task/EnhancedTask.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1203 by iliev, Mon Apr 2 21:18:31 2007 UTC revision 1204 by iliev, Thu May 24 21:43:45 2007 UTC
# Line 24  package org.jsampler.task; Line 24  package org.jsampler.task;
24    
25  import net.sf.juife.AbstractTask;  import net.sf.juife.AbstractTask;
26    
27    import org.linuxsampler.lscp.LSException;
28    
29    
30  /**  /**
31   * This class extends <code>AbstractTask</code> to add new features.   * This class extends <code>AbstractTask</code> to add new features.
# Line 45  public abstract class EnhancedTask<R> ex Line 47  public abstract class EnhancedTask<R> ex
47           */           */
48          public boolean          public boolean
49          isStopped() { return stopped; }          isStopped() { return stopped; }
50            
51            /**
52             * Sets the error details provided by the given exception (if the given
53             * exception is <code>LSException</code> instance and contains error details).
54             */
55            public void
56            setErrorDetails(Exception e) {
57                    if(e == null) return;
58                    
59                    if(e instanceof LSException) {
60                            LSException x = (LSException)e;
61                            if(x.getDetails() != null && x.getDetails().length() > 0) {
62                                    setErrorDetails(x.getDetails());
63                            }
64                    }
65            }
66  }  }

Legend:
Removed from v.1203  
changed lines
  Added in v.1204

  ViewVC Help
Powered by ViewVC