Failure

mill.api.daemon.ExecResult.Failure
final case class Failure[T](msg: String) extends Failing[T]

An intentional failure, which provides a proper error message as well as an optional result value.

Type parameters

T

The result type of the computed task.

Value parameters

msg

The error message.

Attributes

Source
ExecResult.scala
Graph
Supertypes
trait Serializable
trait Serializable
trait Product
trait Equals
trait Failing[T]
trait ExecResult[T]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def flatMap[V](f: T => ExecResult[V]): Failure[V]

Attributes

Source
ExecResult.scala
def map[V](f: T => V): Failure[V]

Attributes

Source
ExecResult.scala
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any
Source
ExecResult.scala

Inherited methods

override def asFailing: Option[Failing[T]]

Attributes

Definition Classes
Inherited from:
Failing
Source
ExecResult.scala
def asSuccess: Option[Success[T]]

Attributes

Inherited from:
ExecResult
Source
ExecResult.scala
def get: T

Attributes

Inherited from:
ExecResult
Source
ExecResult.scala
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
def throwException: Nothing

Attributes

Inherited from:
Failing
Source
ExecResult.scala