Top Description Fields Constructors Methods
org.codehaus.commons.compiler

public Class LocatedException

extends Exception
Class Inheritance
Known Direct Subclasses
org.codehaus.commons.compiler.CompileException
Imports
org.codehaus.commons.nullanalysis.Nullable

An Exception that is associated with an optional Location in a source file.

Field Summary

Modifier and TypeField and Description
private final Location

Constructor Summary

AccessConstructor and Description
public
LocatedException(String message, Location location)

public
LocatedException(String message, Location location, Throwable cause)

Method Summary

Modifier and TypeMethod and Description
public Location

Returns:

The Location specified at construction time (may be null)
getLocation
()

public String
getMessage()

Overrides java.lang.Throwable.getMessage.

Returns the message specified at creation time, preceeded with nicely formatted location information (if any).

Field Detail

locationback to summary
private final Location location
Annotations
@Nullable

Constructor Detail

LocatedExceptionback to summary
public LocatedException(String message, Location location)
LocatedExceptionback to summary
public LocatedException(String message, Location location, Throwable cause)

Method Detail

getLocationback to summary
public Location getLocation()
Returns:Location

The Location specified at construction time (may be null)

Annotations
@Nullable
getMessageback to summary
public String getMessage()

Overrides java.lang.Throwable.getMessage.

Returns the message specified at creation time, preceeded with nicely formatted location information (if any).

Returns:String

Doc from java.lang.Throwable.getMessage.

the detail message string of this Throwable instance (which may be null).

Annotations
@Override