Warning

abstract class Warning : DiagnosticPass

A diagnostic pass which has warning severity.

If a diagnostic of this kind is emitted, this indicates that the pipeline meets its constraints and can be executed by a runner. However, the pipeline may be using non-optimal practices or can be optimized (manually or otherwise).

Inheritors

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Performs an equality check between this object and other.

Link copied to clipboard
fun DiagnosticPass.handleFailure(pipeline: Pipeline, onWarn: (List<Throwable>) -> Unit = {}, onErr: (List<Throwable>) -> Unit = {})

Verifies whether the pipeline passes this diagnostic as if by calling invoke, and invokes onWarn or onErr depending on whether this diagnostic is a DiagnosticPass.Warning or DiagnosticPass.Error respectively.

Link copied to clipboard
open override fun hashCode(): Int

Hashes this DiagnosticPass object using kotlin.reflect.KClass.hashCode of this class.

Link copied to clipboard
abstract operator override fun invoke(pipeline: Pipeline): List<Throwable>

Implementation of the diagnostic.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
override fun test(pipeline: Pipeline): Boolean
Link copied to clipboard
fun verify(pipeline: Pipeline)

Verifies whether the pipeline passes this diagnostic as if by calling invoke, and throwing a VerificationException if it does not.