com.sas.hls.resource.exception
Class ResourceException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.sas.hls.common.exception.AbstractCheckedException
              extended by com.sas.hls.resource.exception.ResourceException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AlreadyCheckedoutException, RepositoryResourceCheckinException, RepositoryResourceCheckoutException, RepositoryResourceUndoCheckoutException, RepositoryResourceVersioningException, ResourceDeleteException, ResourceExistsException, ResourceNotFoundException

public abstract class ResourceException
extends AbstractCheckedException

Abstract parent class for exceptions thrown while manipulating or accessing a resource.

See Also:
Serialized Form

Constructor Summary
ResourceException(String message)
          Constructs a ResourceException with the specified message.
ResourceException(URI uri, String message)
          Constructs a ResourceException with the specified message.
ResourceException(URI uri, String message, Throwable cause)
          Constructs a ResourceException with the specified message and root cause.
 
Method Summary
 URI getUri()
          Returns the URI of the resource in question.
 
Methods inherited from class com.sas.hls.common.exception.AbstractCheckedException
contains, getLocalizedMessage, getMessage, getMostSpecificCause, getRootCause, setLocalizedMessage
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, 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

ResourceException

public ResourceException(URI uri,
                         String message)
Constructs a ResourceException with the specified message.

Parameters:
uri - the resource in question
message - the detailed message

ResourceException

public ResourceException(URI uri,
                         String message,
                         Throwable cause)
Constructs a ResourceException with the specified message and root cause.

Parameters:
uri - the resource in question
message - the detailed message
cause - the root cause for this exception

ResourceException

public ResourceException(String message)
Constructs a ResourceException with the specified message.

Parameters:
message - the detailed message
Method Detail

getUri

public URI getUri()
Returns the URI of the resource in question.

Returns:
URI


Copyright (c) 2012, SAS Institute Inc., Cary, NC, USA