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. |
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 |
} |
} |