ome.util.tasks
Class TaskFailure

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by ome.conditions.RootException
                  extended by ome.util.tasks.TaskFailure
All Implemented Interfaces:
Serializable

public class TaskFailure
extends ome.conditions.RootException

RuntimeException which can be thrown by Task.handleException(RuntimeException) for special handling by the default Run#handleException(). It is assumed that the stack trace of instances are empty and that the message will contain all significant information. This allows Run to print more user-friendly messages. The status variable can also be passed to System.exit(int).

Since:
3.0-Beta2
Author:
Josh Moore, josh.moore at gmx.de
See Also:
Configuration, Task, Run, Serialized Form

Field Summary
static int defaultStatus
           
 int status
           
 
Constructor Summary
TaskFailure(String message)
           
 
Method Summary
 Throwable fillInStackTrace()
           
 
Methods inherited from class java.lang.Throwable
getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

defaultStatus

public static final int defaultStatus
See Also:
Constant Field Values

status

public int status
Constructor Detail

TaskFailure

public TaskFailure(String message)
Method Detail

fillInStackTrace

public Throwable fillInStackTrace()
Overrides:
fillInStackTrace in class Throwable


OmeroJava Api

Version: Beta-4.1.1-r5927-b91

Copyright © 2009 The University of Dundee. All Rights Reserved.