DecodeResult

sttp.tapir.DecodeResult
See theDecodeResult companion trait
object DecodeResult

Attributes

Companion
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

case class Error(original: String, error: Throwable) extends Failure

Any error that occurred while decoding the original value.

Any error that occurred while decoding the original value.

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
trait Failure
trait DecodeResult[Nothing]
class Object
trait Matchable
class Any
Show all
object Error

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Error.type
sealed trait Failure extends DecodeResult[Nothing]

Attributes

Supertypes
trait DecodeResult[Nothing]
class Object
trait Matchable
class Any
Known subtypes
class Error
class InvalidValue
class Mismatch
object Missing.type
class Multiple[R]
case class InvalidValue(errors: List[ValidationError[_]]) extends Failure

A validation error that occurred when decoding the value, that is, when some Validator failed.

A validation error that occurred when decoding the value, that is, when some Validator failed.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Failure
trait DecodeResult[Nothing]
class Object
trait Matchable
class Any
Show all
case class Mismatch(expected: String, actual: String) extends Failure

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Failure
trait DecodeResult[Nothing]
class Object
trait Matchable
class Any
Show all
case object Missing extends Failure

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait Failure
trait DecodeResult[Nothing]
class Object
trait Matchable
class Any
Show all
Self type
Missing.type
case class Multiple[R](vs: Seq[R]) extends Failure

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Failure
trait DecodeResult[Nothing]
class Object
trait Matchable
class Any
Show all
case class Value[T](v: T) extends DecodeResult[T]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait DecodeResult[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
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def fromEitherString[T](original: String, o: Either[String, T]): DecodeResult[T]
def fromOption[T](o: Option[T]): DecodeResult[T]
def sequence[T](results: Seq[DecodeResult[T]]): DecodeResult[Seq[T]]