class NoPhoneNumberException in SMS Framework 8
Same name and namespace in other branches
- 2.x src/Exception/NoPhoneNumberException.php \Drupal\sms\Exception\NoPhoneNumberException
- 2.1.x src/Exception/NoPhoneNumberException.php \Drupal\sms\Exception\NoPhoneNumberException
Thrown if code incorrectly assumes an entity has a phone number.
Call \Drupal::service('sms.phone_number')->getPhoneNumbers() if unsure.
Hierarchy
- class \Drupal\sms\Exception\SmsException extends \Drupal\sms\Exception\RuntimeException
- class \Drupal\sms\Exception\NoPhoneNumberException
Expanded class hierarchy of NoPhoneNumberException
2 files declare their use of NoPhoneNumberException
- PhoneNumberProvider.php in src/
Provider/ PhoneNumberProvider.php - SmsFrameworkPhoneNumberProviderTest.php in tests/
src/ Kernel/ SmsFrameworkPhoneNumberProviderTest.php
File
- src/
Exception/ NoPhoneNumberException.php, line 10
Namespace
Drupal\sms\ExceptionView source
class NoPhoneNumberException extends SmsException {
}