Language names via intl library. Fixes #773
This commit is contained in:
7
library/intl/src/Exception/ExceptionInterface.php
Normal file
7
library/intl/src/Exception/ExceptionInterface.php
Normal file
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
namespace CommerceGuys\Intl\Exception;
|
||||
|
||||
interface ExceptionInterface
|
||||
{
|
||||
}
|
||||
11
library/intl/src/Exception/InvalidArgumentException.php
Normal file
11
library/intl/src/Exception/InvalidArgumentException.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace CommerceGuys\Intl\Exception;
|
||||
|
||||
/**
|
||||
* This exception is thrown when an invalid argument is passed to a method.
|
||||
* For example, a float amount instead of the expected string amount.
|
||||
*/
|
||||
class InvalidArgumentException extends \InvalidArgumentException implements ExceptionInterface
|
||||
{
|
||||
}
|
||||
11
library/intl/src/Exception/UnknownCountryException.php
Normal file
11
library/intl/src/Exception/UnknownCountryException.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace CommerceGuys\Intl\Exception;
|
||||
|
||||
/**
|
||||
* This exception is thrown when an unknown country code is passed to the
|
||||
* CountryRepository.
|
||||
*/
|
||||
class UnknownCountryException extends InvalidArgumentException implements ExceptionInterface
|
||||
{
|
||||
}
|
||||
11
library/intl/src/Exception/UnknownCurrencyException.php
Normal file
11
library/intl/src/Exception/UnknownCurrencyException.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace CommerceGuys\Intl\Exception;
|
||||
|
||||
/**
|
||||
* This exception is thrown when an unknown currency code is passed to the
|
||||
* CurrencyRepository.
|
||||
*/
|
||||
class UnknownCurrencyException extends InvalidArgumentException implements ExceptionInterface
|
||||
{
|
||||
}
|
||||
11
library/intl/src/Exception/UnknownLanguageException.php
Normal file
11
library/intl/src/Exception/UnknownLanguageException.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace CommerceGuys\Intl\Exception;
|
||||
|
||||
/**
|
||||
* This exception is thrown when an unknown language code is passed to the
|
||||
* LanguageRepository.
|
||||
*/
|
||||
class UnknownLanguageException extends InvalidArgumentException implements ExceptionInterface
|
||||
{
|
||||
}
|
||||
10
library/intl/src/Exception/UnknownLocaleException.php
Normal file
10
library/intl/src/Exception/UnknownLocaleException.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace CommerceGuys\Intl\Exception;
|
||||
|
||||
/**
|
||||
* This exception is thrown when an unknown locale is passed to a repository.
|
||||
*/
|
||||
class UnknownLocaleException extends InvalidArgumentException implements ExceptionInterface
|
||||
{
|
||||
}
|
||||
Reference in New Issue
Block a user