org.quattor.pan.exceptions
Class CompilerError
java.lang.Object
java.lang.Throwable
java.lang.Error
org.quattor.pan.exceptions.CompilerError
- All Implemented Interfaces:
- Serializable
public class CompilerError
- extends Error
This error is thrown only for conditions which should never occur. They
indicate an internal compiler error and should always be reported as a bug
when they occur.
- Author:
- loomis
- See Also:
- Serialized Form
|
Constructor Summary |
CompilerError(String message)
Creates a raw CompilerError directly from an unlocalized message. |
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
CompilerError
public CompilerError(String message)
- Creates a raw CompilerError directly from an unlocalized message. This
should only be used for problems arising from the use of the message
resource bundles. All others should use the static create method.
- Parameters:
message -
create
public static CompilerError create(String msgkey,
Object... args)
- Preferred mechanism for creating a localized CompilerError. Except for
messages related to the resource bundle itself, this method should be
used.
- Parameters:
msgkey - args -
- Returns:
- new localized instance of CompilerError
Copyright © 2011 Quattor. All Rights Reserved.