Package moa.tasks
Class FailedTaskReport
- java.lang.Object
-
- moa.AbstractMOAObject
-
- moa.tasks.FailedTaskReport
-
- All Implemented Interfaces:
Serializable
,MOAObject
public class FailedTaskReport extends AbstractMOAObject
Class for reporting a failed task.TaskThread
returns this class as final result object when a task fails.- Version:
- $Revision: 7 $
- Author:
- Richard Kirkby (rkirkby@cs.waikato.ac.nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Throwable
failureReason
-
Constructor Summary
Constructors Constructor Description FailedTaskReport(Throwable failureReason)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
getDescription(StringBuilder sb, int indent)
Returns a string representation of this object.Throwable
getFailureReason()
-
Methods inherited from class moa.AbstractMOAObject
copy, copy, measureByteSize, measureByteSize, toString
-
-
-
-
Field Detail
-
failureReason
protected Throwable failureReason
-
-
Constructor Detail
-
FailedTaskReport
public FailedTaskReport(Throwable failureReason)
-
-
Method Detail
-
getFailureReason
public Throwable getFailureReason()
-
getDescription
public void getDescription(StringBuilder sb, int indent)
Description copied from interface:MOAObject
Returns a string representation of this object. Used inAbstractMOAObject.toString
to give a string representation of the object.- Parameters:
sb
- the stringbuilder to add the descriptionindent
- the number of characters to indent
-
-