api / org.gradle.testkit.runner / UnexpectedBuildResultException

UnexpectedBuildResultException

abstract class UnexpectedBuildResultException : RuntimeException

Base class for UnexpectedBuildFailure and UnexpectedBuildSuccess.

Since
2.9

See Also
BuildResult

Functions

getBuildResult

open fun getBuildResult(): BuildResult

The result of the build execution.

Inheritors

UnexpectedBuildFailure

open class UnexpectedBuildFailure : UnexpectedBuildResultException

Thrown when executing a build that was expected to succeed, but failed.

UnexpectedBuildSuccess

open class UnexpectedBuildSuccess : UnexpectedBuildResultException

Thrown when executing a build that was expected to fail, but succeeded.