Bug 8824 - NETCONF request hangs when rpc-rply has invalid xml
[netconf.git] / netconf / netconf-api / src / main / java / org / opendaylight / netconf / api / FailedNetconfMessage.java
1 /*
2  * Copyright (c) 2017 Bell Canada. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8
9 package org.opendaylight.netconf.api;
10
11 /**
12  * FailedNetconfMessage represents a wrapper around NetconfMessage.
13  */
14 public class FailedNetconfMessage extends NetconfMessage {
15
16     private Throwable exception;
17
18     public FailedNetconfMessage(final Throwable exception) {
19         this.exception = exception;
20     }
21
22     public Throwable getException() {
23         return this.exception;
24     }
25 }