Package gw.lang.parser.exceptions
Class ParseResultsException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- gw.lang.parser.exceptions.ParseResultsException
-
- All Implemented Interfaces:
Serializable
public class ParseResultsException extends Exception
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ParseResultsException(IParsedElement parsedElement)
ParseResultsException(IParsedElement parsedElement, String message)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static String
getExpectedTypeName(IType type)
String
getFeedback()
static String
getFeedback(ICompilableType type, List<IParseIssue> parseExceptions, List<IParseIssue> parseWarnings)
static String
getFeedback(List<IParseIssue> parseExceptions, List<IParseIssue> parseWarnings)
List<IParseIssue>
getIssuesFromPos(int iPos)
ITypeLoader
getLoader()
String
getMessage()
IParsedElement
getParsedElement()
List<IParseIssue>
getParseExceptions()
List<IParseIssue>
getParseExceptionsForKey(ResourceKey key)
List<IParseIssue>
getParseIssues()
List<IParseIssue>
getParseWarnings()
List<IParseIssue>
getParseWarningsForKey(ResourceKey key)
boolean
hasOnlyParseWarnings()
boolean
hasParseExceptions()
boolean
hasParseWarnings()
void
reset(IParsedElement pe)
void
setContextType(ICompilableType contextType)
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
ParseResultsException
public ParseResultsException(IParsedElement parsedElement)
-
ParseResultsException
public ParseResultsException(IParsedElement parsedElement, String message)
-
-
Method Detail
-
getParsedElement
public IParsedElement getParsedElement()
-
getParseIssues
public List<IParseIssue> getParseIssues()
-
hasParseExceptions
public boolean hasParseExceptions()
-
getParseExceptions
public List<IParseIssue> getParseExceptions()
-
hasOnlyParseWarnings
public boolean hasOnlyParseWarnings()
-
hasParseWarnings
public boolean hasParseWarnings()
-
getParseWarnings
public List<IParseIssue> getParseWarnings()
-
getFeedback
public String getFeedback()
-
getFeedback
public static String getFeedback(List<IParseIssue> parseExceptions, List<IParseIssue> parseWarnings)
-
getFeedback
public static String getFeedback(ICompilableType type, List<IParseIssue> parseExceptions, List<IParseIssue> parseWarnings)
-
getLoader
public ITypeLoader getLoader()
-
getIssuesFromPos
public List<IParseIssue> getIssuesFromPos(int iPos)
-
reset
public void reset(IParsedElement pe)
-
getMessage
public String getMessage()
- Overrides:
getMessage
in classThrowable
-
getParseExceptionsForKey
public List<IParseIssue> getParseExceptionsForKey(ResourceKey key)
-
getParseWarningsForKey
public List<IParseIssue> getParseWarningsForKey(ResourceKey key)
-
setContextType
public void setContextType(ICompilableType contextType)
-
-