org.codehaus.janino.util

Class LocatedException

public class LocatedException extends CausedException

An Exception that is associated with an optional Location in a source file.
Constructor Summary
LocatedException(String message, Location optionalLocation)
LocatedException(String message, Location optionalLocation, Throwable optionalCause)
Method Summary
LocationgetLocation()
Returns the Location object specified at construction time (may be null).
StringgetMessage()
Returns the message specified at creation time, preceeded with nicely formatted location information (if any).

Constructor Detail

LocatedException

public LocatedException(String message, Location optionalLocation)

LocatedException

public LocatedException(String message, Location optionalLocation, Throwable optionalCause)

Method Detail

getLocation

public Location getLocation()
Returns the Location object specified at construction time (may be null).

getMessage

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