cs132.util
Class ProblemException
java.lang.Object
java.lang.Throwable
java.lang.Exception
cs132.util.ProblemException
- All Implemented Interfaces:
- Serializable
public class ProblemException
- extends Exception
An exception that has a List
of Problem
objects.
- See Also:
- Serialized Form
problems
public final List<Problem> problems
- The list of problems. Guaranteed to have at least one.
ProblemException
public ProblemException(Problem problem)
ProblemException
public ProblemException(Iterable<Problem> problems)
getMessage
public String getMessage()
- Overrides:
getMessage
in class Throwable
pex
public static ProblemException pex(SourcePos sourcePos,
String message)
- Convenience method that greates a
Problem
with the given
position and message, then wraps it in an exception and returns it.
pex
public static ProblemException pex(SourcePos sourcePos,
String message,
SourcePos l2,
String m2)
- Convenience method that greates a
Problem
with the given
positions and messages, then wraps it in an exception and returns it.