com.google.template.soy.msgs
Class SoyMsgException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.google.template.soy.msgs.SoyMsgException
All Implemented Interfaces:
Serializable

public class SoyMsgException
extends RuntimeException

Exception for errors related to messages/translation.

See Also:
Serialized Form

Constructor Summary
SoyMsgException(String message)
           
SoyMsgException(String message, Throwable cause)
           
SoyMsgException(Throwable cause)
           
 
Method Summary
 String getFileOrResourceName()
          Returns the name of the file or resource associated with this error.
 String getMessage()
           
 void setFileOrResourceName(String fileOrResourceName)
          Sets the name of the file or resource associated with this error.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, 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

SoyMsgException

public SoyMsgException(String message)
Parameters:
message - A detailed description of the error.

SoyMsgException

public SoyMsgException(String message,
                       Throwable cause)
Parameters:
message - A detailed description of the error.
cause - The underlying cause.

SoyMsgException

public SoyMsgException(Throwable cause)
Parameters:
cause - The underlying cause.
Method Detail

setFileOrResourceName

public void setFileOrResourceName(String fileOrResourceName)
Sets the name of the file or resource associated with this error.

Parameters:
fileOrResourceName - The file or resource name to set.

getFileOrResourceName

public String getFileOrResourceName()
Returns the name of the file or resource associated with this error.


getMessage

public String getMessage()
Overrides:
getMessage in class Throwable