org.wso2.carbon.registry.core.exceptions
Class ResourceNotFoundException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.wso2.carbon.registry.api.RegistryException
              extended by org.wso2.carbon.registry.core.exceptions.RegistryException
                  extended by org.wso2.carbon.registry.core.exceptions.ResourceNotFoundException
All Implemented Interfaces:
Serializable

public class ResourceNotFoundException
extends RegistryException

This is thrown when a requested resource cannot be located in the Registry.

See Also:
Serialized Form

Constructor Summary
ResourceNotFoundException(String path)
          Constructs a new exception for a resource not found in the given path.
ResourceNotFoundException(String path, Throwable cause)
          Constructs a new exception with the specified detail message and cause.
 
Method Summary
 
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

ResourceNotFoundException

public ResourceNotFoundException(String path)
Constructs a new exception for a resource not found in the given path.

Parameters:
path - the give path at which the resource was not found.

ResourceNotFoundException

public ResourceNotFoundException(String path,
                                 Throwable cause)
Constructs a new exception with the specified detail message and cause.

Parameters:
path - the give path at which the resource was not found.
cause - the cause of this exception.


Copyright © 2014 WSO2 Inc. All Rights Reserved.