org.quattor.pan.exceptions
Class CompilerError

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Error
          extended by org.quattor.pan.exceptions.CompilerError
All Implemented Interfaces:
java.io.Serializable

public class CompilerError
extends java.lang.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(java.lang.String message)
          Creates a raw CompilerError directly from an unlocalized message.
 
Method Summary
static CompilerError create(java.lang.String msgkey, java.lang.Object... args)
          Preferred mechanism for creating a localized CompilerError.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CompilerError

public CompilerError(java.lang.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 -
Method Detail

create

public static CompilerError create(java.lang.String msgkey,
                                   java.lang.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.