Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Only catch Exception

  • Loading branch information...
commit f35e4e0c1b4ff5ea7f95814b58a1997f0698b533 1 parent 823c96b
@nafg nafg authored
View
2  core/json/src/main/scala/net/liftweb/json/JsonParser.scala
@@ -237,7 +237,7 @@ object JsonParser {
unquote(buf)
} catch {
case p: ParseException => throw p
- case _ => fail("unexpected string end")
+ case _: Exception => fail("unexpected string end")
}
def parseValue(first: Char) = {
View
2  core/util/src/main/scala/net/liftweb/util/TimeHelpers.scala
@@ -432,7 +432,7 @@ trait TimeHelpers { self: ControlHelpers =>
case o => toDate(o.toString)
}
} catch {
- case e => logger.debug("Error parsing date "+in, e); Failure("Bad date: "+in, Full(e), Empty)
+ case e: Exception => logger.debug("Error parsing date "+in, e); Failure("Bad date: "+in, Full(e), Empty)
}
}
}
View
2  persistence/mapper/src/main/scala/net/liftweb/mapper/FieldFinder.scala
@@ -83,7 +83,7 @@ class FieldFinder[T: ClassManifest](metaMapper: AnyRef, logger: net.liftweb.comm
}
} catch {
- case e =>
+ case e: Exception =>
logger.debug("Not a valid mapped field: %s, got exception: %s".format(meth.getName, e))
false
}
Please sign in to comment.
Something went wrong with that request. Please try again.