You are here

class UnexpectedValueException in Zircon Profile 8.0

Same name in this branch
  1. 8.0 vendor/symfony/serializer/Exception/UnexpectedValueException.php \Symfony\Component\Serializer\Exception\UnexpectedValueException
  2. 8.0 vendor/doctrine/instantiator/src/Doctrine/Instantiator/Exception/UnexpectedValueException.php \Doctrine\Instantiator\Exception\UnexpectedValueException
  3. 8.0 vendor/doctrine/common/lib/Doctrine/Common/Proxy/Exception/UnexpectedValueException.php \Doctrine\Common\Proxy\Exception\UnexpectedValueException
Same name and namespace in other branches
  1. 8 vendor/doctrine/common/lib/Doctrine/Common/Proxy/Exception/UnexpectedValueException.php \Doctrine\Common\Proxy\Exception\UnexpectedValueException

Proxy Unexpected Value Exception.

@link www.doctrine-project.org @since 2.4 @author Marco Pivetta <ocramius@gmail.com>

Hierarchy

Expanded class hierarchy of UnexpectedValueException

3 files declare their use of UnexpectedValueException
ProxyGenerator.php in vendor/doctrine/common/lib/Doctrine/Common/Proxy/ProxyGenerator.php
ProxyLogicTest.php in vendor/doctrine/common/tests/Doctrine/Tests/Common/Proxy/ProxyLogicTest.php
ProxyMagicMethodsTest.php in vendor/doctrine/common/tests/Doctrine/Tests/Common/Proxy/ProxyMagicMethodsTest.php
2 string references to 'UnexpectedValueException'
ProxyLogicTest::testFailedLoadingWillThrowException in vendor/doctrine/common/tests/Doctrine/Tests/Common/Proxy/ProxyLogicTest.php
RequestTest::testHostValidity in vendor/symfony/http-foundation/Tests/RequestTest.php
@dataProvider getHostValidities

File

vendor/doctrine/common/lib/Doctrine/Common/Proxy/Exception/UnexpectedValueException.php, line 31

Namespace

Doctrine\Common\Proxy\Exception
View source
class UnexpectedValueException extends BaseUnexpectedValueException implements ProxyException {

  /**
   * @param string $proxyDirectory
   *
   * @return self
   */
  public static function proxyDirectoryNotWritable($proxyDirectory) {
    return new self(sprintf('Your proxy directory "%s" must be writable', $proxyDirectory));
  }

  /**
   * @param string     $className
   * @param string     $methodName
   * @param string     $parameterName
   * @param \Exception $previous
   *
   * @return self
   */
  public static function invalidParameterTypeHint($className, $methodName, $parameterName, \Exception $previous) {
    return new self(sprintf('The type hint of parameter "%s" in method "%s" in class "%s" is invalid.', $parameterName, $methodName, $className), 0, $previous);
  }

}

Members