From db5acb407da152483743ae2dd737f28b86153746 Mon Sep 17 00:00:00 2001 From: Asko Kauppi Date: Wed, 16 Mar 2016 12:11:09 +0200 Subject: [PATCH] deserializationError to both samples The `DeserializationException` mentioned in the second sample in `README` does no longer compile (1.3.2). I believe both the samples should have the exception line alike. --- README.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.markdown b/README.markdown index 69e53272..48efdcf4 100644 --- a/README.markdown +++ b/README.markdown @@ -209,7 +209,7 @@ object MyJsonProtocol extends DefaultJsonProtocol { value.asJsObject.getFields("name", "red", "green", "blue") match { case Seq(JsString(name), JsNumber(red), JsNumber(green), JsNumber(blue)) => new Color(name, red.toInt, green.toInt, blue.toInt) - case _ => throw new DeserializationException("Color expected") + case _ => deserializationError("Color expected") } } }