jap.fields.fail

Type members

Classlikes

sealed trait CompareOperation
trait FailWith[E, +P] extends FailWithMessage[E, P] with FailWithCompare[E, P] with FailWithInvalid[E, P] with FailWithEmpty[E, P] with FailWithNonEmpty[E, P] with FailWithMinSize[E, P] with FailWithMaxSize[E, P] with FailWithOneOf[E, P]

Aggregates all possible FailWith* typeclasses shorthand if you need all of them. If are free to implemented only those you will use. Best practise will be to but implicit instance of this into companion object of your error.

Aggregates all possible FailWith* typeclasses shorthand if you need all of them. If are free to implemented only those you will use. Best practise will be to but implicit instance of this into companion object of your error.

Companion:
object
Source:
FailWith.scala
object FailWith
Companion:
class
Source:
FailWith.scala
trait FailWithBuilder[E, +P] extends FailWith[E, P]
@implicitNotFound("To use this operation you need to have FailWithCompare[${E}] in scope")
@implicitNotFound("To use this operation you need to have FailWithEmpty[${E}] in scope")
trait FailWithEmpty[E, +P]
class FailWithFieldError[E, +P](FW: FailWith[E, P]) extends FailWith[FieldError[E], P]

Wrap existing error into FieldError given FailWith instance for type E

Wrap existing error into FieldError given FailWith instance for type E

Source:
FailWithFieldError.scala
@implicitNotFound("To use this operation you need to have FailWithInvalid[${E}] in scope")
@implicitNotFound("To use this operation you need to have FailWithMaxSize[${E}] in scope")
@implicitNotFound("To use this operation you need to have FailWithMessage[${E}] in scope")
@implicitNotFound("To use this operation you need to have FailWithMinSize[${E}] in scope")
@implicitNotFound("To use this operation you need to have FailWithNonEmpty[${E}] in scope")
@implicitNotFound("To use this operation you need to have FailWithOneOf[${E}] in scope")
trait FailWithOneOf[E, +P]

FailWithValidationMessage wrapped with jap.fields.error.FieldError in

FailWithValidationMessage wrapped with jap.fields.error.FieldError in

Source:
FailWithValidationMessageFieldString.scala

String FailWith instance where errors are human-readable error messages

String FailWith instance where errors are human-readable error messages

Source:
FailWithValidationMessageString.scala

FailWithValidationType wrapper with jap.fields.error.FieldError in

FailWithValidationType wrapper with jap.fields.error.FieldError in

Source:
FailWithValidationTypeFieldString.scala

String FailWith instance where errors are just error types that occured

String FailWith instance where errors are just error types that occured

Source:
FailWithValidationTypeString.scala