/*
 * Copyright 2002-2019 the original author or authors.
 *
 * 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
 *
 *      https://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.springframework.cloud.servicebroker.exception;

/**
 * Thrown to indicate that a request includes a service binding ID that is not known to the service broker.
 *
 * <p>
 * Throwing this exception will result in an HTTP status code {@literal 422 UNPROCESSABLE ENTITY}
 * being returned to the platform.
 */
public class ServiceInstanceBindingDoesNotExistException extends RuntimeException {

	private static final long serialVersionUID = -1879753092397657116L;

	/**
	 * Construct an exception with a default message that includes the provided service binding ID.
	 *
	 * @param bindingId the ID of the service binding
	 */
	public ServiceInstanceBindingDoesNotExistException(String bindingId) {
		super(buildMessage(bindingId));
	}

	private static String buildMessage(String bindingId) {
		return "Service binding does not exist: id=" + bindingId;
	}
}

@@ -1004,15 +1004,21 @@
 nds 
-Runtime
+ServiceBroker
 Exce
@@ -1330,16 +1330,16 @@
 ngId) %7B%0A
-
 %09%09super(
@@ -1368,16 +1368,396 @@
 ));%0A%09%7D%0A%0A
+%09/**%0A%09 * Construct an exception with a default message that includes the provided IDs.%0A%09 *%0A%09 * @param errorCode a single word in camel case that uniquely identifies the error condition%0A%09 * @param bindingId the ID of the service binding%0A%09 */%0A%09public ServiceInstanceBindingDoesNotExistException(String errorCode, String bindingId) %7B%0A%09%09super(errorCode, buildMessage(bindingId));%0A%09%7D%0A%0A
 %09private

Update ServiceInstanceBindingDoesNotExistException for consistency