@@ -0,0 +1,2857 @@
+/*%0A * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.%0A *%0A * This program and the accompanying materials are made available under the%0A * terms of the Eclipse Public License v1.0 which accompanies this distribution,%0A * and is available at http://www.eclipse.org/legal/epl-v10.html%0A */%0Apackage org.opendaylight.controller.sal.common.util;%0A%0Aimport org.opendaylight.yangtools.yang.common.RpcError;%0Aimport org.opendaylight.yangtools.yang.common.RpcError.ErrorSeverity;%0Aimport org.opendaylight.yangtools.yang.common.RpcError.ErrorType;%0A%0A/**%0A * @author mirehak%0A *%0A */%0Apublic class RpcErrors %7B%0A    %0A    /**%0A     * @param applicationTag%0A     * @param tag%0A     * @param info%0A     * @param severity%0A     * @param message%0A     * @param errorType %0A     * @param cause %0A     * @return %7B@link RpcError%7D implementation%0A     */%0A    public static RpcError getRpcError(String applicationTag, String tag, String info,%0A            ErrorSeverity severity, String message, ErrorType errorType, Throwable cause) %7B%0A        RpcErrorTO ret = new RpcErrorTO(applicationTag, tag, info, severity, message, %0A                errorType, cause);%0A        return ret;%0A    %7D%0A%0A    private static class RpcErrorTO implements RpcError %7B%0A%0A        private final String applicationTag;%0A        private final String tag;%0A        private final String info;%0A        private final ErrorSeverity severity;%0A        private final String message;%0A        private final ErrorType errorType;%0A        private final Throwable cause;%0A%0A        /**%0A         * @param applicationTag%0A         * @param tag%0A         * @param info%0A         * @param severity%0A         * @param message%0A         * @param errorType%0A         * @param cause%0A         */%0A        protected RpcErrorTO(String applicationTag, String tag, String info,%0A                ErrorSeverity severity, String message, ErrorType errorType, Throwable cause) %7B%0A            super();%0A            this.applicationTag = applicationTag;%0A            this.tag = tag;%0A            this.info = info;%0A            this.severity = severity;%0A            this.message = message;%0A            this.errorType = errorType;%0A            this.cause = cause;%0A        %7D%0A%0A        @Override%0A        public String getApplicationTag() %7B%0A            return applicationTag;%0A        %7D%0A%0A        @Override%0A        public String getInfo() %7B%0A            return info;%0A        %7D%0A%0A        @Override%0A        public String getMessage() %7B%0A            return message;%0A        %7D%0A%0A        @Override%0A        public ErrorSeverity getSeverity() %7B%0A            return severity;%0A        %7D%0A%0A        @Override%0A        public String getTag() %7B%0A            return tag;%0A        %7D%0A%0A        @Override%0A        public Throwable getCause() %7B%0A            return cause;%0A        %7D%0A        %0A        @Override%0A        public ErrorType getErrorType() %7B%0A            return errorType;%0A        %7D%0A    %7D%0A%7D%0A

Add helper class for RpcError interface