Package moa.tasks

Class 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 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 in AbstractMOAObject.toString to give a string representation of the object.
        Parameters:
        sb - the stringbuilder to add the description
        indent - the number of characters to indent