BUG 274 REST response instead of NumberFormatException 58/6358/2
authorJozef Gloncak <jgloncak@cisco.com>
Thu, 24 Apr 2014 13:57:14 +0000 (15:57 +0200)
committerJozef Gloncak <jgloncak@cisco.com>
Wed, 30 Apr 2014 06:28:44 +0000 (06:28 +0000)
commit70c7f86d4f89fbc48ad2d896732982e42db67fd5
tree2607ad0badcf5fc0520edeec76b3859f50fb84ba
parent386d8f0ac5fa09ee5514d48284f1a4012f408b52
BUG 274 REST response instead of NumberFormatException

Raised NumberFormatException is now catched and thrown next as
WebApplicationException which is displayed as return message for REST
call.

Change-Id: I1b4ee74c6a953fe3b64ef47c07477c29d892a87c
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
opendaylight/md-sal/sal-rest-connector/src/main/java/org/opendaylight/controller/sal/restconf/impl/RestconfImpl.xtend
opendaylight/md-sal/sal-rest-connector/src/test/java/org/opendaylight/controller/sal/restconf/impl/test/CodecsExceptionsCatchingTest.java [new file with mode: 0644]
opendaylight/md-sal/sal-rest-connector/src/test/resources/decoding-exception/yang/number.yang [new file with mode: 0644]