/** * Construct an exception with the provided message and cause. * * @param message the exception message * @param cause the cause of the exception */ public ServiceBrokerInvalidParametersException(String message, Throwable cause) { super(prependMessagePrefix(message), cause); }
/** * 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)); }
/** * Construct an exception with an error code and default message. * * @param errorCode a single word in camel case that uniquely identifies the error condition * @param operation a description of the operation in progress */ public ServiceBrokerOperationInProgressException(String errorCode, String operation) { super(errorCode, prependMessagePrefix(operation)); }
/** * Construct an exception with the expected and provided versions. * * @param expectedVersion the version expected by the service broker * @param providedVersion the version provided by the platform */ public ServiceBrokerApiVersionException(String expectedVersion, String providedVersion) { super(ServiceBrokerApiVersionErrorMessage.from(expectedVersion, providedVersion).toString()); }
/** * Construct an exception with the provided error code, message and cause. * * @param errorCode a single word in camel case that uniquely identifies the error condition * @param message the exception message * @param cause the exception cause */ public ServiceBrokerUnavailableException(String errorCode, String message, Throwable cause) { super(errorCode, prependMessagePrefix(message), cause); }
/** * Construct an exception with a default message that includes the provided IDs. * * @param serviceInstanceId the ID of the service instance * @param bindingId the ID of the service binding */ public ServiceInstanceBindingExistsException(String serviceInstanceId, String bindingId) { super(buildMessage(serviceInstanceId, bindingId)); }
/** * Construct an exception with a default message that includes the provided service instance ID. * * @param serviceInstanceId the ID of the service instance */ public ServiceInstanceDoesNotExistException(String serviceInstanceId) { super(buildMessage(serviceInstanceId)); }
/** * Construct a message with the expected and provided version numbers. * * @param expectedVersion the version expected by the service broker * @param providedVersion the version provided by the platform * @return error message */ public static ServiceBrokerApiVersionErrorMessage from(String expectedVersion, String providedVersion) { return new ServiceBrokerApiVersionErrorMessage(expectedVersion, providedVersion); }
/** * Construct an exception with the provided message and cause. * * @param message the exception message * @param cause the cause of the exception */ public ServiceBrokerInvalidOriginatingIdentityException(String message, Throwable cause) { super(prependMessagePrefix(message), cause); }
/** * Construct an exception with a default message that includes the provided IDs. * * @param serviceInstanceId the ID of the service instance * @param serviceDefinitionId the ID of the service definition */ public ServiceInstanceExistsException(String serviceInstanceId, String serviceDefinitionId) { super(buildMessage(serviceInstanceId, serviceDefinitionId)); }
/** * Construct an exception with an error code and default message that includes the * provided service definition ID. * * @param errorCode a single word in camel case that uniquely identifies the error condition * @param serviceDefinitionId the ID of the service definition */ public ServiceDefinitionDoesNotExistException(String errorCode, String serviceDefinitionId) { super(errorCode, buildMessage(serviceDefinitionId)); }
/** * Construct an exception with the provided message. * * @param message the exception message */ public ServiceBrokerInvalidParametersException(String message) { super(prependMessagePrefix(message)); }
/** * 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)); }
/** * Construct an exception with the provided error code and message. * * @param errorCode a single word in camel case that uniquely identifies the error condition * @param message the exception message */ public ServiceBrokerUnavailableException(String errorCode, String message) { super(errorCode, prependMessagePrefix(message)); }
/** * Construct an exception with a default message that includes the provided IDs. * * @param serviceInstanceId the ID of the service instance * @param bindingId the ID of the service binding */ public ServiceInstanceBindingExistsException(String serviceInstanceId, String bindingId) { super(buildMessage(serviceInstanceId, bindingId)); }
/** * Construct an exception with a default message that includes the provided service instance ID. * * @param serviceInstanceId the ID of the service instance */ public ServiceInstanceDoesNotExistException(String serviceInstanceId) { super(buildMessage(serviceInstanceId)); }
/** * Construct a message with the expected and provided version numbers. * * @param expectedVersion the version expected by the service broker * @param providedVersion the version provided by the platform * @return error message */ public static ServiceBrokerApiVersionErrorMessage from(String expectedVersion, String providedVersion) { return new ServiceBrokerApiVersionErrorMessage(expectedVersion, providedVersion); }
/** * Construct an exception with the provided message and cause. * * @param message the exception message * @param cause the cause of the exception */ public ServiceBrokerInvalidOriginatingIdentityException(String message, Throwable cause) { super(prependMessagePrefix(message), cause); }
/** * Construct an exception with the provided error code, message and cause. * * @param errorCode a single word in camel case that uniquely identifies the error condition * @param message the exception message * @param cause the cause of the exception */ public ServiceBrokerInvalidParametersException(String errorCode, String message, Throwable cause) { super(errorCode, prependMessagePrefix(message), cause); }
/** * Construct an exception with the provided error code and message. * * @param errorCode a single word in camel case that uniquely identifies the error condition * @param message the exception message */ public ServiceBrokerInvalidParametersException(String errorCode, String message) { super(errorCode, prependMessagePrefix(message)); }