package org.musetest.core.variables;

/**
 * @author Christopher L Merrill (see LICENSE.txt for license details)
 */
public class MuseTestFailureDescription
    {
    public MuseTestFailureDescription(FailureType type, String reason)
        {
        _type = type;
        _reason = reason;
        }

    public FailureType getFailureType()
        {
        return _type;
        }

    public String getReason()
        {
        return _reason;
        }

    private FailureType _type;
    private String _reason;

    public enum FailureType
        {
        Failure,
        Error,
        Interrupted
        }
    }



@@ -514,16 +514,117 @@
 eason;%0A%0A
+    @Override%0A    public String toString()%0A%09    %7B%0A%09    return _type.name() + %22: %22 + _reason;%0A%09    %7D%0A%0A
     publ

add a useful toString()