com.atlassian.confluence.content.render.xhtml
Class XhtmlTimeoutException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.atlassian.confluence.content.render.xhtml.XhtmlException
              extended by com.atlassian.confluence.content.render.xhtml.XhtmlTimeoutException
All Implemented Interfaces:
Serializable

public class XhtmlTimeoutException
extends XhtmlException

A checked exception indicating that an Xhtml Conversion has exceeded its allocated time limit.

See Also:
Serialized Form

Method Summary
static XhtmlTimeoutException forTimeout(com.atlassian.util.concurrent.Timeout timeout)
           
 long getAllowedTimeInSeconds()
           
 String getDetailedTimeoutMessage()
          Gives a detailed message containing both the allowed time and the time that passed before the timeout was checked.
 String getDetailedTimeoutMessage(String operation)
          Gives a detailed message containing both the allowed time and the time that passed before the timeout was checked.
 long getExceededTimeInMilliseconds()
           
 
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
 

Method Detail

forTimeout

public static XhtmlTimeoutException forTimeout(com.atlassian.util.concurrent.Timeout timeout)

getDetailedTimeoutMessage

public String getDetailedTimeoutMessage()
Gives a detailed message containing both the allowed time and the time that passed before the timeout was checked. This is useful for debugging but confusing for users.


getDetailedTimeoutMessage

public String getDetailedTimeoutMessage(String operation)
Gives a detailed message containing both the allowed time and the time that passed before the timeout was checked. This is useful for debugging but confusing for users.

Parameters:
operation - the operation that timed out

getAllowedTimeInSeconds

public long getAllowedTimeInSeconds()

getExceededTimeInMilliseconds

public long getExceededTimeInMilliseconds()


Copyright © 2003-2012 Atlassian. All Rights Reserved.