Open Kilda Java Documentation
UnroutablePathException.java
Go to the documentation of this file.
1 package org.openkilda.pce.provider;
2 
4 
5 public class UnroutablePathException extends Exception {
6  private final Flow flow;
7 
9  super(String.format(
10  "Can't make flow from %s to %s (bandwidth=%d%s)",
11  flow.getSourceSwitch(), flow.getDestinationSwitch(), flow.getBandwidth(),
12  flow.isIgnoreBandwidth() ? " ignored" : ""));
13 
14  this.flow = flow;
15  }
16 
17  public Flow getFlow() {
18  return flow;
19  }
20 }