public class UnexpectedTaskExecutionException
extends org.springframework.batch.core.UnexpectedJobExecutionException
implements org.springframework.boot.ExitCodeGenerator
UnexpectedTaskExecutionException which extends UnsupportedOperationException, but
also contains the exitCode as information.| Constructor and Description |
|---|
UnexpectedTaskExecutionException(String message)
Constructs an UnexpectedTaskExecutionException with the specified
detail message.
|
UnexpectedTaskExecutionException(String message,
org.springframework.cloud.task.repository.TaskExecution taskExecution)
Constructs an UnexpectedTaskExecutionException with the specified
detail message and taskExecution.
|
UnexpectedTaskExecutionException(String message,
Throwable cause)
Constructs an UnexpectedTaskExecutionException with the specified
detail message, cause and exitCode.
|
UnexpectedTaskExecutionException(String message,
Throwable cause,
org.springframework.cloud.task.repository.TaskExecution taskExecution)
Constructs an UnexpectedTaskExecutionException with the specified
detail message, cause and taskExecution.
|
| Modifier and Type | Method and Description |
|---|---|
Date |
getEndTime() |
String |
getErrorMessage() |
long |
getExecutionId() |
int |
getExitCode()
Returns the exit code of the task.
|
String |
getExitMessage() |
String |
getExternalExecutionId() |
Long |
getParentExecutionId() |
Date |
getStartTime() |
String |
getTaskName() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic UnexpectedTaskExecutionException(String message)
message - the detail messagepublic UnexpectedTaskExecutionException(String message, Throwable cause)
message - the detail messagecause - the cause which leads to this exceptionpublic UnexpectedTaskExecutionException(String message, org.springframework.cloud.task.repository.TaskExecution taskExecution)
message - the detail messagetaskExecution - the taskExecution of the taskpublic UnexpectedTaskExecutionException(String message, Throwable cause, org.springframework.cloud.task.repository.TaskExecution taskExecution)
message - the detail messagecause - the cause which leads to this exceptiontaskExecution - the taskExecution of the taskpublic long getExecutionId()
public int getExitCode()
getExitCode in interface org.springframework.boot.ExitCodeGeneratorpublic String getTaskName()
public Date getStartTime()
public Date getEndTime()
public String getExitMessage()
public String getErrorMessage()
public String getExternalExecutionId()
public Long getParentExecutionId()
Copyright © 2024 Pivotal Software, Inc.. All rights reserved.