You are here

class NoPhoneNumberException in SMS Framework 8

Same name and namespace in other branches
  1. 2.x src/Exception/NoPhoneNumberException.php \Drupal\sms\Exception\NoPhoneNumberException
  2. 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

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\Exception
View source
class NoPhoneNumberException extends SmsException {

}

Members