Top Description Fields Constructors Methods
com.github.javaparser.resolution

public Class UnsolvedSymbolException

extends RuntimeException
Class Inheritance

This exception is thrown when a symbol cannot be resolved.
Author
Federico Tomassetti

Field Summary

Modifier and TypeField and Description
private Throwable
cause

Hides java.lang.Throwable.cause.

The throwable that caused this UnsolvedSymbolException to get thrown, or null if this UnsolvedSymbolException was not caused by another throwable, or if the causative throwable is unknown.
private String
context

Additional information that provides more details on the context that a symbol could not be resolved in, or null if there is no contextual information, or if the contextual information is unknown.

private String
name

The name of the symbol that could not be resolved.

Constructor Summary

AccessConstructor and Description
public
public
public
public

Method Summary

Modifier and TypeMethod and Description
public String
public String
toString()

Overrides java.lang.Throwable.toString.

Returns a short description of this throwable.

Field Detail

causeback to summary
private Throwable cause

Hides java.lang.Throwable.cause.

The throwable that caused this UnsolvedSymbolException to get thrown, or null if this UnsolvedSymbolException was not caused by another throwable, or if the causative throwable is unknown.

contextback to summary
private String context

Additional information that provides more details on the context that a symbol could not be resolved in, or null if there is no contextual information, or if the contextual information is unknown.

nameback to summary
private String name

The name of the symbol that could not be resolved.

Constructor Detail

UnsolvedSymbolExceptionback to summary
public UnsolvedSymbolException(String name)
UnsolvedSymbolExceptionback to summary
public UnsolvedSymbolException(String name, String context)
UnsolvedSymbolExceptionback to summary
public UnsolvedSymbolException(String name, Throwable cause)
UnsolvedSymbolExceptionback to summary
public UnsolvedSymbolException(String name, String context, Throwable cause)

Method Detail

getNameback to summary
public String getName()
toStringback to summary
public String toString()

Overrides java.lang.Throwable.toString.

Doc from java.lang.Throwable.toString.

Returns a short description of this throwable. The result is the concatenation of:

  • the name of the class of this object
  • ": " (a colon and a space)
  • the result of invoking this object's getLocalizedMessage method
If getLocalizedMessage returns null, then just the class name is returned.
Returns:String

a string representation of this throwable.

Annotations
@Override