Bug-2226: RFC5886 - Messages parsers/serializers
[bgpcep.git] / pcep / segment-routing / src / main / java / org / opendaylight / protocol / pcep / segment / routing02 / SrPcRepMessageParser.java
index 0e8cabf15a7d02a26020b50e033b330c92afb084..4102a127195d69f53c07395c944ed7beb22d8f65 100644 (file)
@@ -14,6 +14,7 @@ import io.netty.buffer.ByteBuf;
 import java.util.List;
 import org.opendaylight.protocol.pcep.impl.message.PCEPReplyMessageParser;
 import org.opendaylight.protocol.pcep.spi.ObjectRegistry;
+import org.opendaylight.protocol.pcep.spi.PCEPDeserializerException;
 import org.opendaylight.protocol.pcep.spi.PCEPErrors;
 import org.opendaylight.protocol.pcep.spi.VendorInformationObjectRegistry;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev131005.Message;
@@ -53,7 +54,7 @@ public class SrPcRepMessageParser extends PCEPReplyMessageParser {
     }
 
     @Override
-    protected Replies getValidReply(List<Object> objects, List<Message> errors) {
+    protected Replies getValidReply(List<Object> objects, List<Message> errors) throws PCEPDeserializerException {
         if (!(objects.get(0) instanceof Rp)) {
             errors.add(createErrorMsg(PCEPErrors.RP_MISSING, Optional.<Rp>absent()));
             return null;