org.jdesktop.application
Class ResourceMap.LookupException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.jdesktop.application.ResourceMap.LookupException
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
ResourceMap

public static class ResourceMap.LookupException
extends java.lang.RuntimeException

Unchecked exception thrown by ResourceMap.getObject(java.lang.String, java.lang.Class) when resource lookup fails, for example because string conversion fails. This is not a missing resource exception. If a resource isn't defined for a particular key, getObject does not throw an exception.

See Also:
ResourceMap.getObject(java.lang.String, java.lang.Class), Serialized Form

Constructor Summary
ResourceMap.LookupException(java.lang.String msg, java.lang.String key, java.lang.Class type)
          Constructs an instance of this class with some useful information about the failure.
 
Method Summary
 java.lang.String getKey()
          Returns the type of the name of resource for which lookup failed.
 java.lang.Class getType()
          Returns the type of the resource for which lookup failed.
 
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

ResourceMap.LookupException

public ResourceMap.LookupException(java.lang.String msg,
                                   java.lang.String key,
                                   java.lang.Class type)
Constructs an instance of this class with some useful information about the failure.

Parameters:
msg - the detail message
type - the type of the resource
key - the name of the resource
Method Detail

getType

public java.lang.Class getType()
Returns the type of the resource for which lookup failed.

Returns:
the resource type

getKey

public java.lang.String getKey()
Returns the type of the name of resource for which lookup failed.

Returns:
the resource name