package bluej.debugger;

import threadchecker.OnThread;
import threadchecker.Tag;

import java.util.List;


| A description of an exception. | | @author Michael Kolling | @OnThread(Tag.Any) public final class ExceptionDescription { private String className; private String text; private List<SourceLocation> stack;
| Construct an exception description. | | @param className The name of the exception class | @param text The exception message | @param stack The stack trace for the exception | public ExceptionDescription(String className, String text, List<SourceLocation> stack) { this.className = className; this.text = text; this.stack = stack; } public ExceptionDescription(String text) { this.className = null; this.text = text; this.stack = null; }
| Return the name of the exception class. | public String getClassName() { return className; }
| Return the text of the exception. | public String getText() { return text; }
| Return the stack (a list of SourceLocation objects) for the exception | location. Element 0 in the list is the current frame, higher numbers | are caller frames. | public List getStack() { return stack; } public String toString() { return className + ": " + text; } }

.   - ExceptionDescription
.   ExceptionDescription
.   ExceptionDescription
.   getClassName
.   getText
.   getStack
.   toString




68 neLoCode + 11 LoComm