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.
- Companion:
- object
- Source:
- FailWith.scala
object FailWithValidationMessage.type
object FailWithValidationMessageString.type
object FailWithValidationTypeString.type
object FailWithValidationMessageFieldString.type
object FailWithValidationTypeFieldString.type
Value members
Inherited methods
def compare[PP >: P, C](operation: CompareOperation, compared: C)(field: Field[PP])(implicit C: FieldCompare[PP, C]): E
- Inherited from:
- FailWithCompare
- Source:
- FailWithCompare.scala