com.github.pjfanning.pekkohttpcirce.ErrorAccumulatingCirceSupport
See theErrorAccumulatingCirceSupport companion trait
object ErrorAccumulatingCirceSupport extends ErrorAccumulatingCirceSupport
Automatic to and from JSON marshalling/unmarshalling using an in-scope circe protocol. The unmarshaller accumulates all errors in the exception Errors
.
To use automatic codec derivation, user needs to import io.circe.generic.auto._
.
Attributes
- Companion
- trait
- Graph
-
- Supertypes
- Self type
Members list
Type members
Classlikes
final case class DecodingFailures(failures: NonEmptyList[DecodingFailure]) extends Exception
Attributes
- Supertypes
-
trait Producttrait Equalsclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
Inherited types
Attributes
- Inherited from:
- BaseCirceSupport
Value members
Inherited methods
Attributes
- Inherited from:
- BaseCirceSupport
Attributes
- Inherited from:
- BaseCirceSupport
Attributes
- Inherited from:
- BaseCirceSupport
Implicits
Inherited implicits
Attributes
- Definition Classes
- Inherited from:
- ErrorAccumulatingUnmarshaller
Json
=> HTTP entity
HTTP entity => Json
final implicit def marshaller[A : Encoder](implicit evidence$1: Encoder[A], printer: Printer): ToEntityMarshaller[A]
A
=> HTTP entity
A
=> HTTP entity
Type parameters
- A
-
type to encode
Attributes
- Returns
-
marshaller for any
A
value - Inherited from:
- BaseCirceSupport
HTTP entity => Either[io.circe.ParsingFailure, Json]
HTTP entity => Either[io.circe.ParsingFailure, Json]
Attributes
- Returns
-
unmarshaller for
Either[io.circe.ParsingFailure, Json]
- Inherited from:
- BaseCirceSupport
Attributes
- Inherited from:
- ErrorAccumulatingUnmarshaller
implicit def sourceMarshaller[A](implicit writes: Encoder[A], printer: Printer, support: JsonEntityStreamingSupport): ToEntityMarshaller[SourceOf[A]]
SourceOf[A]
=> HTTP entity
SourceOf[A]
=> HTTP entity
Type parameters
- A
-
type to encode
Attributes
- Returns
-
marshaller for any
SourceOf[A]
value - Inherited from:
- BaseCirceSupport
implicit def sourceUnmarshaller[A : Decoder](implicit evidence$1: Decoder[A], support: JsonEntityStreamingSupport): FromEntityUnmarshaller[SourceOf[A]]
HTTP entity => Source[A, _]
HTTP entity => Source[A, _]
Type parameters
- A
-
type to decode
Attributes
- Returns
-
unmarshaller for
Source[A, _]
- Inherited from:
- BaseCirceSupport
Attributes
- Definition Classes
- Inherited from:
- ErrorAccumulatingUnmarshaller
In this article