CDS: Add stress test RPC to the cars model
[controller.git] / opendaylight / config / config-util / src / main / java / org / opendaylight / controller / config / util / xml / UnexpectedElementException.java
1 /*
2  * Copyright (c) 2013 Cisco Systems, Inc. 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 package org.opendaylight.controller.config.util.xml;
9
10 import java.util.Collections;
11 import java.util.Map;
12
13 public class UnexpectedElementException extends DocumentedException {
14     private static final long serialVersionUID = 1L;
15
16     public UnexpectedElementException(final String message, final DocumentedException.ErrorType errorType, final DocumentedException.ErrorTag errorTag,
17                                       final DocumentedException.ErrorSeverity errorSeverity) {
18         this(message, errorType, errorTag, errorSeverity, Collections.<String, String> emptyMap());
19     }
20
21     public UnexpectedElementException(final String message, final DocumentedException.ErrorType errorType, final DocumentedException.ErrorTag errorTag,
22                                       final DocumentedException.ErrorSeverity errorSeverity, final Map<String, String> errorInfo) {
23         super(message,errorType,errorTag,errorSeverity,errorInfo);
24     }
25 }