Griffon 1.2.0

griffon.core.i18n
[Java] Class NoSuchMessageException

java.lang.Object
  java.lang.Throwable
      java.lang.Exception
          java.lang.RuntimeException
              griffon.core.i18n.NoSuchMessageException

public class NoSuchMessageException
extends RuntimeException

Authors:
Alexander Klein
Since:
1.1.0


Field Summary
private String key

private Locale locale

 
Constructor Summary
NoSuchMessageException(String key, Locale locale)

Create a new exception.

NoSuchMessageException(String key)

Create a new exception.

 
Method Summary
String getKey()

Get the key without a valid value

Locale getLocale()

Get the locale without a valid value

 
Methods inherited from class RuntimeException
printStackTrace, printStackTrace, printStackTrace, fillInStackTrace, getCause, initCause, toString, getMessage, getLocalizedMessage, getStackTrace, setStackTrace, wait, wait, wait, equals, hashCode, getClass, notify, notifyAll
 
Methods inherited from class Exception
printStackTrace, printStackTrace, printStackTrace, fillInStackTrace, getCause, initCause, toString, getMessage, getLocalizedMessage, getStackTrace, setStackTrace, wait, wait, wait, equals, hashCode, getClass, notify, notifyAll
 

Field Detail

key

private String key


locale

private Locale locale


 
Constructor Detail

NoSuchMessageException

public NoSuchMessageException(String key, Locale locale)
Create a new exception.
Parameters:
key - message that could not be resolved for given locale
locale - locale that was used to search for the code within


NoSuchMessageException

public NoSuchMessageException(String key)
Create a new exception.
Parameters:
key - key that could not be resolved for given locale


 
Method Detail

getKey

public String getKey()
Get the key without a valid value
Returns:
The key


getLocale

public Locale getLocale()
Get the locale without a valid value
Returns:
The locale


 

Groovy Documentation