BUG-731: do not use raw exceptions 76/6776/1
authorRobert Varga <rovarga@cisco.com>
Wed, 7 May 2014 08:43:53 +0000 (10:43 +0200)
committerRobert Varga <rovarga@cisco.com>
Wed, 7 May 2014 08:46:53 +0000 (10:46 +0200)
commit7105bdc8fbe8be04459ce0f12cf0ebec7a81f9c2
treebf9323d563e6bd1ce5054dc8bd74ed106cc2ce64
parente06d2736da94d8aa0d8eee4587a90dbf9db057a6
BUG-731: do not use raw exceptions

Instead of throwing Exception, but use Preconditions. Also remove
declaration of Exception being thrown, and throw concrete exceptions.

Change-Id: I861e7c6d93080ba01ef9474ccd9dbf1b443f9e2d
Signed-off-by: Robert Varga <rovarga@cisco.com>
restconf/restconf-util/src/main/java/org/opendaylight/yangtools/restconf/utils/XmlTools.java