# TaskExecutionException

open class TaskExecutionException : DefaultMultiCauseException(source)

A `TaskExecutionException` is thrown when a task fails to execute successfully.

If the cause of a failure is a VerificationException, we should not display task provenance information on the console in the failure message.

#### Since

0.9

## Constructors

TaskExecutionException
Link copied to clipboard
constructor(task: Task, cause: Throwable)
Creates a new `TaskExecutionException`.

## Properties

cause
Link copied to clipboard
open val cause: Throwable
message
Link copied to clipboard
open val message: @Nullable String
stackTrace
Link copied to clipboard
open var stackTrace: Array<StackTraceElement>
task
Link copied to clipboard
val task: Task

## Functions

addSuppressed
Link copied to clipboard
fun addSuppressed(exception: Throwable)
fillInStackTrace
Link copied to clipboard
open fun fillInStackTrace(): Throwable
getCauses
Link copied to clipboard
open fun getCauses(): List<out Throwable>
getLocalizedMessage
Link copied to clipboard
open fun getLocalizedMessage(): String
getResolutions
Link copied to clipboard
open fun getResolutions(): List<String>
getSuppressed
Link copied to clipboard
fun getSuppressed(): Array<Throwable>
hasCause
Link copied to clipboard
open fun hasCause(type: Class<out Any>): Boolean
initCause
Link copied to clipboard
open fun initCause(throwable: Throwable): Throwable
initCauses
Link copied to clipboard
open fun initCauses(causes: Iterable<out Throwable>)
printStackTrace
Link copied to clipboard
open fun printStackTrace(printStream: PrintStream)
toString
Link copied to clipboard
open fun toString(): String