Package com.github.javaparser.resolution
Class UnsolvedSymbolException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.github.javaparser.resolution.UnsolvedSymbolException
-
- All Implemented Interfaces:
java.io.Serializable
public class UnsolvedSymbolException extends java.lang.RuntimeException
This exception is thrown when a symbol cannot be resolved.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Throwable
cause
The throwable that caused thisUnsolvedSymbolException
to get thrown, ornull
if thisUnsolvedSymbolException
was not caused by another throwable, or if the causative throwable is unknown.private java.lang.String
context
Additional information that provides more details on the context that a symbol could not be resolved in, ornull
if there is no contextual information, or if the contextual information is unknown.private java.lang.String
name
The name of the symbol that could not be resolved.
-
Constructor Summary
Constructors Constructor Description UnsolvedSymbolException(java.lang.String name)
UnsolvedSymbolException(java.lang.String name, java.lang.String context)
UnsolvedSymbolException(java.lang.String name, java.lang.String context, java.lang.Throwable cause)
UnsolvedSymbolException(java.lang.String name, java.lang.Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getName()
java.lang.String
toString()
-
-
-
Field Detail
-
name
private java.lang.String name
The name of the symbol that could not be resolved.
-
context
private java.lang.String context
Additional information that provides more details on the context that a symbol could not be resolved in, ornull
if there is no contextual information, or if the contextual information is unknown.
-
cause
private java.lang.Throwable cause
The throwable that caused thisUnsolvedSymbolException
to get thrown, ornull
if thisUnsolvedSymbolException
was not caused by another throwable, or if the causative throwable is unknown.
-
-
Constructor Detail
-
UnsolvedSymbolException
public UnsolvedSymbolException(java.lang.String name)
-
UnsolvedSymbolException
public UnsolvedSymbolException(java.lang.String name, java.lang.String context)
-
UnsolvedSymbolException
public UnsolvedSymbolException(java.lang.String name, java.lang.Throwable cause)
-
UnsolvedSymbolException
public UnsolvedSymbolException(java.lang.String name, java.lang.String context, java.lang.Throwable cause)
-
-