@@ -0,0 +1,777 @@
+/**%0A * This Source Code Form is subject to the terms of the Mozilla Public%0A * License, v. 2.0. If a copy of the MPL was not distributed with this file,%0A * You can obtain one at http://mozilla.org/MPL/2.0/.%0A */%0Apackage org.mifosplatform.organisation.monetary.exception;%0A%0Aimport org.mifosplatform.infrastructure.core.exception.AbstractPlatformDomainRuleException;%0A%0A/**%0A * A %7B@link RuntimeException%7D thrown when trying to delete a currency that is%0A * still in use.%0A */%0Apublic class CurrencyInUseException extends AbstractPlatformDomainRuleException %7B%0A%0A%09public CurrencyInUseException(final String currencyCode) %7B%0A%09%09super(%22error.msg.currency.currencyCode.inUse%22,%0A%09%09%09%09%22Cannot remove currency with identifier %22 + currencyCode%0A%09%09%09%09%09%09+ %22 while it is still in use%22, currencyCode);%0A%09%7D%0A%0A%7D%0A

Throw a CurrencyInUseException when a currency is being deleted that is still in use.