/*
 * Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
 *
 * WSO2 Inc. licenses this file to you under the Apache License,
 * Version 2.0 (the "License"); you may not use this file except
 * in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */

package org.wso2.andes.thrift.exception;

/**
 * ThriftClientException will be thrown when internal error comes when using MBThriftClient
 */
public class ThriftClientException extends Exception{


    public ThriftClientException(String message) {
        super(message);
    }

    public ThriftClientException(Throwable cause) {
        super(cause);
    }

}



@@ -865,17 +865,94 @@
 ption%7B%0A%0A
+    /***%0A     * Constructor%0A     * @param message descriptive message%0A     */
 %0A
-
     publ
@@ -1025,16 +1025,156 @@
 %0A    %7D%0A%0A
+    /***%0A     * Constructor%0A     * @param message descriptive message%0A     * @param cause reference to the exception for reference.%0A     */%0A
     publ
@@ -1198,16 +1198,32 @@
 ception(
+String message, 
 Throwabl
@@ -1247,16 +1247,25 @@
   super(
+message, 
 cause);%0A

Refactored the code