Making the default-serializer condition throw NoSerializerFoundException instead of plain Exception'
This commit is contained in:
parent
01c01e9771
commit
df316b98de
1 changed files with 1 additions and 1 deletions
|
|
@ -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))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue