| java.lang.Object java.lang.Throwable java.lang.Exception java.lang.RuntimeException org.openlaszlo.compiler.CompilationError
All known Subclasses: org.openlaszlo.compiler.InvalidFontSpec,
CompilationError | public class CompilationError extends RuntimeException (Code) | | Represents an error that occurred during the invocation of the
interface compiler.
|
Field Summary | |
public static boolean | ThrowCompilationErrors Set this to true to throw compilation errors that have a
cause, instead of wrapping them in instances of
CompilationError. |
ThrowCompilationErrors | public static boolean ThrowCompilationErrors(Code) | | Set this to true to throw compilation errors that have a
cause, instead of wrapping them in instances of
CompilationError. This is useful for debugging the
compiler.
|
CompilationError | public CompilationError(String message)(Code) | | Constructs an instance.
Parameters: message - a string |
CompilationError | public CompilationError(String message, Element element)(Code) | | Constructs an instance.
Parameters: message - a string Parameters: element - the element within which the error occurred |
CompilationError | public CompilationError(Element element, Throwable cause)(Code) | | Constructs an instance.
Parameters: element - the element within which the error occurred Parameters: cause - the chained cause of the error |
CompilationError | public CompilationError(Throwable cause)(Code) | | Constructs an instance.
Parameters: cause - the chained cause of the error |
attachErrors | public void attachErrors(List errors)(Code) | | |
getColumnNumber | public Integer getColumnNumber()(Code) | | Returns the column number at which this error occurred, or null
if this can't be determined.
the line number at which the error occurred |
getElement | public Element getElement()(Code) | | Returns the element at which the error occurred.
the element at which the error occurred |
getErrorMessage | public String getErrorMessage()(Code) | | the error message w/out the filename and line, col numbersXXX This doesn't seem to work. |
getLineNumber | public Integer getLineNumber()(Code) | | Returns the line number at which this error occurred, or null
if this can't be determined.
the line number at which the error occurred |
getMessage | public String getMessage(File base)(Code) | | Return a message describing the error.
Parameters: base - pathname prefix to strip out from error messages a message describing the error |
getMessage | public String getMessage(String base)(Code) | | Return a message describing the error.
Parameters: base - pathname prefix to strip out from error messages a message describing the error |
getPathname | public String getPathname()(Code) | | Returns the name of the file within which this error
occurred.
the name of the file within which the error occurred |
initColumnNumber | public void initColumnNumber(int columnNumber)(Code) | | |
initElement | void initElement(Element element)(Code) | | Initializes this instance's element to the specified
parameter. May be called at most once, and only if the element
wasn't initialized in the constructor.
Parameters: element - the element at which the error occurred |
initLineNumber | public void initLineNumber(int lineNumber)(Code) | | |
initPathname | public void initPathname(String pathname)(Code) | | Initializes this instance's pathname to the specified
parameter. May be called at most once, and only if the pathname
wasn't initialized in the constructor.
Parameters: pathname - the name of the file at which the error occurred |
setColumnNumber | public void setColumnNumber(int columnNumber)(Code) | | |
setLineNumber | public void setLineNumber(int lineNumber)(Code) | | |
setSolution | public void setSolution(String sol)(Code) | | Set the 'solution message', a hint as to what might have
caused this error.
Parameters: sol - a helpful message to be appended to the error message |
|
|