added NodeException

This commit is contained in:
Grant Limberg 2015-04-25 20:46:41 -07:00
parent db80070ccb
commit 8a09e0ec3c
2 changed files with 38 additions and 1 deletions

View file

@ -77,7 +77,7 @@ public class Node {
PacketSender sender,
EventListener eventListener,
VirtualNetworkFrameListener frameListener,
VirtualNetworkConfigListener configListener)
VirtualNetworkConfigListener configListener) throws NodeException
{
this.nodeId = now;
@ -92,6 +92,7 @@ public class Node {
if(rc != ResultCode.RESULT_OK)
{
// TODO: Throw Exception
throw new NodeException(rc.toString());
}
}