class TimeOutException: ResolutionException
Fields
Name | Description |
---|---|
val exceededDuration: TimeDuration
|
The time duration exceeded |
Constructors
<init>
constructor(message: String?, cause: Throwable?, context: ExecutionContext, exceededDuration: TimeDuration)
Parameters
Name | Description |
---|---|
message: String?
|
|
cause: Throwable?
|
|
context: ExecutionContext
|
|
exceededDuration: TimeDuration
|
<init>
constructor(cause: Throwable?, context: ExecutionContext, exceededDuration: TimeDuration)
Parameters
Name | Description |
---|---|
cause: Throwable?
|
|
context: ExecutionContext
|
|
exceededDuration: TimeDuration
|
<init>
constructor(message: String?, cause: Throwable?, contexts: Array<ExecutionContext>, exceededDuration: TimeDuration)
Exception thrown if time for execution finished, before completion of solution process
Parameters
Name | Description |
---|---|
message: String?
|
the detail message string. |
cause: Throwable?
|
the cause of this exception. |
contexts: Array<ExecutionContext>
|
a stack of contexts localising the exception |
exceededDuration: TimeDuration
|
The time duration exceeded |
Methods
updateContext
fun updateContext(newContext: ExecutionContext, index: Int): TimeOutException
Creates a new exception instance with the context with in position index updated to newContext. Subclasses should override this method and return the correct instance.
Parameters
Name | Description |
---|---|
newContext: ExecutionContext
|
|
index: Int
|
ReturnValue
Name | Description |
---|---|
TimeOutException
|
updateLastContext
fun updateLastContext(newContext: ExecutionContext): TimeOutException
Parameters
Name | Description |
---|---|
newContext: ExecutionContext
|
ReturnValue
Name | Description |
---|---|
TimeOutException
|
pushContext
fun pushContext(newContext: ExecutionContext): TimeOutException
Parameters
Name | Description |
---|---|
newContext: ExecutionContext
|
ReturnValue
Name | Description |
---|---|
TimeOutException
|
Exception thrown if time for execution finished, before completion of solution process