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") } } }