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
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
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static XhtmlTimeoutException
createForTimeout(io.atlassian.util.concurrent.Timeout timeout)
static XhtmlTimeoutException
forTimeout(com.atlassian.util.concurrent.Timeout timeout)
Deprecated.since 7.0.1.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
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Method Detail
-
forTimeout
@Deprecated public static XhtmlTimeoutException forTimeout(com.atlassian.util.concurrent.Timeout timeout)
Deprecated.since 7.0.1. UsecreateForTimeout(Timeout)
-
createForTimeout
public static XhtmlTimeoutException createForTimeout(io.atlassian.util.concurrent.Timeout timeout)
- Since:
- 7.0.1
-
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()
-
-