Result

mill.api.daemon.Result
See theResult companion trait
object Result

Attributes

Companion
trait
Source
Result.scala
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Result.type

Members list

Type members

Classlikes

final class Exception(val error: String, val failure: Option[Failure] = ...) extends Exception

Exception used to short circuit a task evaluation with a pretty error string or a Failure object containing metadata for pretty error reporting

Exception used to short circuit a task evaluation with a pretty error string or a Failure object containing metadata for pretty error reporting

Attributes

Source
Result.scala
Supertypes
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
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.

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
Supertypes
trait Serializable
trait Serializable
trait Product
trait Equals
trait Result[Nothing]
class Object
trait Matchable
class Any
Show all
object Failure

Attributes

Companion
class
Source
Result.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Failure.type
final class SerializedException(val info: ExceptionInfo, cause: Throwable) extends Throwable

An exception that has its original class and metadata replaced by a Failure.ExceptionInfo data structure. Used to sanitize exceptions when propagating them across classloader boundaries, since some of the exceptions in a cause-chain may be instances of no-longer-valid classes after a classloader is closed

An exception that has its original class and metadata replaced by a Failure.ExceptionInfo data structure. Used to sanitize exceptions when propagating them across classloader boundaries, since some of the exceptions in a cause-chain may be instances of no-longer-valid classes after a classloader is closed

Attributes

Companion
object
Source
Result.scala
Supertypes
class Throwable
trait Serializable
class Object
trait Matchable
class Any

Attributes

Companion
class
Source
Result.scala
Supertypes
class Object
trait Matchable
class Any
Self type
final case class Success[+T](value: T) extends Result[T]

Attributes

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

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements.

The names of the product elements.

Attributes

Inherited from:
Mirror
Source
Mirror.scala
type MirroredLabel <: String

The name of the type.

The name of the type.

Attributes

Inherited from:
Mirror
Source
Mirror.scala

Value members

Concrete methods

def fromEither[T](either: Either[String, T]): Result[T]

Attributes

Source
Result.scala
def sequence[B, M <: (IterableOnce)](in: M[Result[B]])(using factory: Factory[B, M[B]]): Result[M[B]]

Converts a Collection[Result[T]] into a Result[Collection[T]]

Converts a Collection[Result[T]] into a Result[Collection[T]]

Attributes

Source
Result.scala
def traverse[A, B, Collection <: (IterableOnce)](collection: Collection[Result[A]])(f: A => Result[B])(using factory: Factory[B, Collection[B]]): Result[Collection[B]]

Converts a Collection[T] into a Result[Collection[V]] using the given f: T => Result[V]

Converts a Collection[T] into a Result[Collection[V]] using the given f: T => Result[V]

Attributes

Source
Result.scala

Extensions

Extensions

extension [A](rr: Result[Result[A]])
def flatten: Result[A]

Attributes

Source
Result.scala

Implicits

Implicits

implicit def create[T](value: T): Result[T]

Attributes

Source
Result.scala