com.sapportals.wcm.repository

Class ServiceUnavailableException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.sapportals.wcm.WcmException
              extended by com.sapportals.wcm.util.content.ContentException
                  extended by com.sapportals.wcm.repository.ResourceException
                      extended by com.sapportals.wcm.repository.ServiceUnavailableException
All Implemented Interfaces:
Serializable

public class ServiceUnavailableException
extends ResourceException

A service is not available.

Copyright 2002 (c) SAP AG

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.sapportals.wcm.WcmException
ex
 
Constructor Summary
ServiceUnavailableException(ServiceNotAvailableException newEx, Date retry)
          This constructor is used by the framework to use this exception as a wrapper for a new exception class of the repository manager API.
ServiceUnavailableException(String msg, Date retry, RID resourceID)
          Constructs a new ServiceUnavailableException
ServiceUnavailableException(String msg, Exception ex, RID resourceID)
          Constructs a new ServiceUnavailableException
ServiceUnavailableException(String msg, RID resourceID)
          Constructs a new ServiceUnavailableException
 
Method Summary
 Date getRetryAfter()
          Returns the time when retries of the operation are recommended.
 
Methods inherited from class com.sapportals.wcm.repository.ResourceException
fillInStackTrace, getLocalizedMessage, getMessage, getNextResourceException, getResourceID, getRID, printStackTrace, printStackTrace, printStackTrace, setNextResourceException, toString
 
Methods inherited from class com.sapportals.wcm.WcmException
getContainedException, isLogged, setContainedException
 
Methods inherited from class java.lang.Throwable
getCause, getStackTrace, initCause, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServiceUnavailableException

public ServiceUnavailableException(String msg,
                                   RID resourceID)
Constructs a new ServiceUnavailableException

Parameters:
msg - The message
resourceID - The URI of the resource that caused the exception (optional)

ServiceUnavailableException

public ServiceUnavailableException(String msg,
                                   Date retry,
                                   RID resourceID)
Constructs a new ServiceUnavailableException

Parameters:
msg - The message
retry - date before which retries are not recommended
resourceID - The URI of the resource that caused the exception (optional)

ServiceUnavailableException

public ServiceUnavailableException(String msg,
                                   Exception ex,
                                   RID resourceID)
Constructs a new ServiceUnavailableException

Parameters:
msg - The message
ex - The contained exception
resourceID - The URI of the resource that caused the exception (optional)

ServiceUnavailableException

public ServiceUnavailableException(ServiceNotAvailableException newEx,
                                   Date retry)
This constructor is used by the framework to use this exception as a wrapper for a new exception class of the repository manager API.

Parameters:
newEx - The new exception.
retry - date before which retries are not recommended
Method Detail

getRetryAfter

public Date getRetryAfter()
Returns the time when retries of the operation are recommended. Repeating the operation before this time, will most likely raise this exception again. If the best time for retry is unknown, null is retuned.

Returns:
time of first recommended retry or null if not known.
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] KMC-CM [sap.com] tc/km/frwk api EP-KM-CM
[sap.com] KMC-WPC [sap.com] tc/kmc/wpc/wpcfacade api EP-PIN-WPC-WCM


Copyright 2014 SAP AG Complete Copyright Notice