org.codehaus.dna
Class MissingResourceException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.codehaus.dna.MissingResourceException
All Implemented Interfaces:
java.io.Serializable

public class MissingResourceException
extends java.lang.Exception

The MissingResourceException is used to signal a problem retrieving a resource from the ResourceLocator object.

Version:
$Revision: 1.2 $ $Date: 2004/05/01 09:51:48 $
See Also:
Serialized Form

Constructor Summary
MissingResourceException(java.lang.String message, java.lang.String key)
          Create a MissingResourceException with specified message and key.
MissingResourceException(java.lang.String message, java.lang.String key, java.lang.Throwable cause)
          Create a MissingResourceException with specified message, key and cause.
 
Method Summary
 java.lang.Throwable getCause()
          Return the exception that caused this exception if any.
 java.lang.String getKey()
          Return the resource key that caused the problem.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, 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

MissingResourceException

public MissingResourceException(java.lang.String message,
                                java.lang.String key)
Create a MissingResourceException with specified message and key.

Parameters:
message - the message
key - the key

MissingResourceException

public MissingResourceException(java.lang.String message,
                                java.lang.String key,
                                java.lang.Throwable cause)
Create a MissingResourceException with specified message, key and cause.

Parameters:
message - the message
key - the key
cause - the cause
Method Detail

getKey

public java.lang.String getKey()
Return the resource key that caused the problem.

Returns:
the resource key that caused the problem.

getCause

public java.lang.Throwable getCause()
Return the exception that caused this exception if any.

Returns:
the exception that caused this exception if any.


Copyright © 2003-2004 Codehaus. All Rights Reserved.