Result

grackle.Result
See theResult companion trait
object Result extends ResultInstances

Attributes

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

Members list

Type members

Classlikes

final case class Failure(problems: Type[Problem]) extends Result[Nothing]

Attributes

Source
result.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Result[Nothing]
class Object
trait Matchable
class Any
Show all
final case class InternalError(error: Throwable) extends Result[Nothing]

Attributes

Source
result.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Result[Nothing]
class Object
trait Matchable
class Any
Show all
final case class Success[+T](value: T) extends Result[T]

Attributes

Source
result.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Result[T]
class Object
trait Matchable
class Any
Show all
final case class Warning[+T](problems: Type[Problem], value: T) extends Result[T]

Attributes

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

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
Source
Mirror.scala

The name of the type

The name of the type

Attributes

Inherited from:
Mirror
Source
Mirror.scala

Value members

Concrete methods

def apply[A](a: A): Result[A]

Yields a Success with the given value.

Yields a Success with the given value.

Attributes

Source
result.scala
def catchNonFatal[T](body: => T): Result[T]

Attributes

Source
result.scala
def combineAllWithDefault[T](ress: List[Result[T]], default: => T): Result[List[T]]

Attributes

Source
result.scala
def failure[A](s: String): Result[A]

Attributes

Source
result.scala
def failure[A](p: Problem): Result[A]

Attributes

Source
result.scala
def fromEither[A](ea: Either[Problem, A]): Result[A]

Attributes

Source
result.scala
def fromEither[A](ea: Either[String, A])(implicit ev: DummyImplicit): Result[A]

Attributes

Source
result.scala
def fromOption[A](oa: Option[A], ifNone: => Problem): Result[A]

Attributes

Source
result.scala
def fromOption[A](oa: Option[A], ifNone: => String)(implicit ev: DummyImplicit): Result[A]

Attributes

Source
result.scala
def fromProblems(problems: Seq[Problem]): Result[Unit]

Attributes

Source
result.scala
def fromProblems(problems: Chain[Problem]): Result[Unit]

Attributes

Source
result.scala
def internalError[A](err: Throwable): Result[A]

Attributes

Source
result.scala
def internalError[A](err: String): Result[A]

Attributes

Source
result.scala
def pure[A](a: A): Result[A]

Yields a Success with the given value.

Yields a Success with the given value.

Attributes

Source
result.scala
def success[A](a: A): Result[A]

Yields a Success with the given value.

Yields a Success with the given value.

Attributes

Source
result.scala
def warning[A](warning: Problem, value: A): Result[A]

Attributes

Source
result.scala
def warning[A](warning: String, value: A): Result[A]

Attributes

Source
result.scala

Concrete fields

val unit: Result[Unit]

Yields a Success with unit value.

Yields a Success with unit value.

Attributes

Source
result.scala

Implicits

Inherited implicits

implicit def grackleEqForResult[A : Eq]: Eq[Result[A]]

Attributes

Inherited from:
ResultInstances0
Source
result.scala

Attributes

Inherited from:
ResultInstances
Source
result.scala

Attributes

Inherited from:
ResultInstances
Source
result.scala

Attributes

Inherited from:
ResultInstances0
Source
result.scala