class
ValidationErrorSerializer extends CustomSerializer[ValidationError]
Instance Constructors
-
new
ValidationErrorSerializer(includeCode: Boolean = true, includeArgs: Boolean = true)
Value Members
-
final
def
!=(arg0: AnyRef): Boolean
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: AnyRef): Boolean
-
final
def
==(arg0: Any): Boolean
-
val
Class: Class[_]
-
final
def
asInstanceOf[T0]: T0
-
def
clone(): AnyRef
-
def
deserialize(implicit format: Formats): PartialFunction[(TypeInfo, JValue), ValidationError]
-
final
def
eq(arg0: AnyRef): Boolean
-
def
equals(arg0: Any): Boolean
-
def
finalize(): Unit
-
final
def
getClass(): Class[_]
-
def
hashCode(): Int
-
final
def
isInstanceOf[T0]: Boolean
-
final
def
ne(arg0: AnyRef): Boolean
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
def
serialize(implicit format: Formats): PartialFunction[Any, JValue]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toString(): String
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
Inherited from AnyRef
Inherited from Any
Serializes a validation error into a structure:
You can configure whether or not to include the args. And on the way in it assumes args are JValues. The fields: field, code and args are only added if they have actual data.