InsufficientBalanceException
Keywords: net.corda.core.contracts.InsufficientBalanceException class
Date: 2023-09-18

net.corda.core.contracts

## Class InsufficientBalanceException

-     public class InsufficientBalanceException

  Thrown if a request is made to spend an amount of a `interface FungibleAsset` but there aren't enough tokens in the vault.

  See Also:
    `interface FungibleAsset`

- - ### Constructor Detail

    - #### InsufficientBalanceException

          public InsufficientBalanceException(@NotNull
                                              Amount<?> amountMissing)

      Thrown if a request is made to spend an amount of a `interface FungibleAsset` but there aren't enough tokens in the vault.

      Parameters:
        `amountMissing` - An `class Amount` that specifies how many tokens were missing.
      See Also:
        `interface FungibleAsset`

  - ### Method Detail

    - #### getAmountMissing

          @NotNull
          public Amount<?> getAmountMissing()

      An

      `class Amount` that specifies how many tokens were missing.

      See Also:
        `class Amount`