/*
 * Copyright 2018 B2i Healthcare Pte Ltd, http://b2i.sg
 * 
 * Licensed 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 com.b2international.snowowl.snomed.reasoner.exceptions;

import com.b2international.commons.exceptions.ApiException;

/**
 * @since 7.0
 */
public final class ReasonerApiException extends ApiException {

	public ReasonerApiException(final String template, final Object... args) {
		super(template, args);
	}

	@Override
	protected Integer getStatus() {
		return 500;
	}
}

@@ -681,16 +681,39 @@
 tions;%0A%0A
+import java.util.Map;%0A%0A
 import c
@@ -763,16 +763,63 @@
 ception;
+%0Aimport com.google.common.collect.ImmutableMap;
 %0A%0A/**%0A *
@@ -974,16 +974,16 @@
 args) %7B%0A
-
 %09%09super(
@@ -1001,16 +1001,375 @@
 rgs);%0A%09%7D
+%0A%09%0A%09@Override%0A%09protected Map%3CString, Object%3E getAdditionalInfo() %7B%0A%09%09final ImmutableMap.Builder%3CString, Object%3E additionalInfoBuilder = ImmutableMap.%3CString, Object%3Ebuilder()%0A%09%09%09%09.putAll(super.getAdditionalInfo());%0A%09%09%0A%09%09if (getCause() != null) %7B%0A%09%09%09additionalInfoBuilder.put(%22cause%22, getCause().getMessage());%0A%09%09%7D%0A%09%09%0A%09%09return additionalInfoBuilder.build();%0A%09%7D
 %0A%0A%09@Over

Store the message of the causing Exception as an additional...