Failure

mill.api.daemon.Result.Failure
See theFailure companion object
final case class Failure(error: String, path: Path = ..., index: Int = ..., exception: Seq[ExceptionInfo] = ..., tickerPrefix: String = ..., next: Option[Failure] = ...) extends Result[Nothing]

Models the kind of error reporting supported by Mill's terminal UI. Apart from the simple error: String, also supports file position and exception stack trace metadata to provide richer error diagnostics, and can be chained together via Failure.join to return multiple failures at once.

Attributes

Companion
object
Source
Result.scala
Graph
Supertypes
trait Serializable
trait Serializable
trait Product
trait Equals
trait Result[Nothing]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def errorOpt: Option[String]

Attributes

Source
Result.scala
def flatMap[V](f: Nothing => Result[V]): Result[Nothing]

Attributes

Source
Result.scala
def get: Nothing

Attributes

Source
Result.scala
def map[V](f: Nothing => V): Result[Nothing]

Attributes

Source
Result.scala
def toEither: Either[String, Nothing]

Attributes

Source
Result.scala
def toOption: Option[Nothing]

Attributes

Source
Result.scala

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
Source
Product.scala
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product
Source
Product.scala
def zip[V](rhs: Result[V]): Result[(Nothing, V)]

Attributes

Inherited from:
Result
Source
Result.scala