org.rhq.enterprise.server.resource
Class ResourceNotFoundException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.rhq.enterprise.server.resource.ResourceNotFoundException
All Implemented Interfaces:
Serializable

public class ResourceNotFoundException
extends RuntimeException

Indicates a query for a single JON resource did not return any results. Note, we intentionally do not provide constructors that take a cause, since the three screen long Hibernate stack trace doesn't add any value here.

See Also:
Serialized Form

Constructor Summary
ResourceNotFoundException()
           
ResourceNotFoundException(int resourceId)
          Create an exception indicating the resource with the specified id was not found.
ResourceNotFoundException(String message)
           
 
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()

ResourceNotFoundException

public ResourceNotFoundException(int resourceId)
Create an exception indicating the resource with the specified id was not found.

Parameters:
resourceId - a resource id

ResourceNotFoundException

public ResourceNotFoundException(String message)


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.