Failure

mill.api.ExecResult.Failure
@Scaladoc(value = "/**\n * An intentional failure, which provides a proper error message as well as an optional result value.\n * @param msg The error message.\n * @param value The optional result value.\n * @tparam T The result type of the computed task.\n */")
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.

value

The optional result value.

Attributes

Source
ExecResult.scala
Graph
Supertypes
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