Griffon 1.2.0

griffon.core.resources
[Java] Class NoSuchResourceException

java.lang.Object
  java.lang.Throwable
      java.lang.Exception
          java.lang.RuntimeException
              griffon.core.resources.NoSuchResourceException

public class NoSuchResourceException
extends RuntimeException

Authors:
Andres Almiray
Alexander Klein
Since:
1.1.0


Field Summary
private String key

private Locale locale

 
Constructor Summary
NoSuchResourceException(String key, Locale locale)

Create a new exception.

NoSuchResourceException(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

NoSuchResourceException

public NoSuchResourceException(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


NoSuchResourceException

public NoSuchResourceException(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