Class XhtmlTimeoutException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.atlassian.confluence.content.render.xhtml.XhtmlException
com.atlassian.confluence.content.render.xhtml.XhtmlTimeoutException
- All Implemented Interfaces:
Serializable
A checked exception indicating that an Xhtml Conversion has exceeded its allocated time limit.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic XhtmlTimeoutException
createForTimeout
(io.atlassian.util.concurrent.Timeout timeout) long
Gives a detailed message containing both the allowed time and the time that passed before the timeout was checked.getDetailedTimeoutMessage
(String operation) Gives a detailed message containing both the allowed time and the time that passed before the timeout was checked.long
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Method Details
-
createForTimeout
- Since:
- 7.0.1
-
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
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()
-