You are here

class MobileNumberException in Mobile Number 8

Same name and namespace in other branches
  1. 2.0.x src/Exception/MobileNumberException.php \Drupal\mobile_number\Exception\MobileNumberException

Exception thrown during mobile number testing if the number is invalid.

Hierarchy

  • class \Drupal\mobile_number\Exception\MobileNumberException extends \Drupal\mobile_number\Exception\RuntimeException

Expanded class hierarchy of MobileNumberException

4 files declare their use of MobileNumberException
MobileNumber.php in src/Element/MobileNumber.php
MobileNumberTfa.php in src/Plugin/TfaValidation/MobileNumberTfa.php
MobileNumberTfa.php
MobileNumberUtil.php in src/MobileNumberUtil.php
MobileNumberValidator.php in src/Plugin/Validation/Constraint/MobileNumberValidator.php

File

src/Exception/MobileNumberException.php, line 8

Namespace

Drupal\mobile_number\Exception
View source
class MobileNumberException extends \RuntimeException {
  const ERROR_INVALID_NUMBER = 1;
  const ERROR_WRONG_TYPE = 2;
  const ERROR_WRONG_COUNTRY = 3;
  const ERROR_NO_NUMBER = 4;

}

Members