commit | 877ec2c51fe8ac336da682ca43adb21755ee54ef | [log] [tgz] |
---|---|---|
author | Sho SHIMIZU <sshimizu@us.fujitsu.com> | Mon Feb 09 12:50:36 2015 -0800 |
committer | Brian O'Connor <bocon@onlab.us> | Fri Feb 13 14:10:55 2015 -0800 |
tree | b575bbf69af74bc20be8b078367113accc9f374b | |
parent | 37a24a887a064876b75773052271c060b06997d7 [diff] [blame] |
Handle exception when compiling fails - Change arguments of the constructor of PathNotFoundException - Change the catched exception in Compiling.execute() Change-Id: I3b639ffd585900c2a6dd99aeeb313bf20c6104f4
diff --git a/core/net/src/main/java/org/onosproject/net/intent/impl/ConnectivityIntentCompiler.java b/core/net/src/main/java/org/onosproject/net/intent/impl/ConnectivityIntentCompiler.java index e029c78..c6c3698 100644 --- a/core/net/src/main/java/org/onosproject/net/intent/impl/ConnectivityIntentCompiler.java +++ b/core/net/src/main/java/org/onosproject/net/intent/impl/ConnectivityIntentCompiler.java
@@ -105,7 +105,7 @@ } }).toList(); if (filtered.isEmpty()) { - throw new PathNotFoundException("No packet path from " + one + " to " + two); + throw new PathNotFoundException(one, two); } // TODO: let's be more intelligent about this eventually return filtered.iterator().next();