ome.util.tasks
Class TaskFailure
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
ome.conditions.RootException
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
defaultStatus
public static final int defaultStatus
- See Also:
- Constant Field Values
status
public int status
TaskFailure
public TaskFailure(String message)
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.