Making the default-serializer condition throw NoSerializerFoundException instead of plain Exception'

This commit is contained in:
Viktor Klang 2011-06-15 17:14:11 +02:00
parent 01c01e9771
commit df316b98de

View file

@ -33,7 +33,7 @@ object Serialization {
case _
getDefaultSerializer match {
case Some(s: Serializer) Right(s)
case None Left(new Exception("No default serializer found for " + clazz))
case None Left(NoSerializerFoundException("No default serializer found for " + clazz))
}
}
}