You are here

class CurrencyMismatchException in Commerce Core 8.2

Thrown when trying to operate on monetary values with different currencies.

Hierarchy

  • class \Drupal\commerce_price\Exception\CurrencyMismatchException extends \Drupal\commerce_price\Exception\InvalidArgumentException

Expanded class hierarchy of CurrencyMismatchException

2 files declare their use of CurrencyMismatchException
OrderTest.php in modules/order/tests/src/Kernel/Entity/OrderTest.php
Price.php in modules/price/src/Price.php

File

modules/price/src/Exception/CurrencyMismatchException.php, line 8

Namespace

Drupal\commerce_price\Exception
View source
class CurrencyMismatchException extends \InvalidArgumentException {

}

Members