added NodeException
This commit is contained in:
parent
db80070ccb
commit
8a09e0ec3c
2 changed files with 38 additions and 1 deletions
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue