You are here

class UnexpectedValueException in Plug 7

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 lib/doctrine/common/lib/Doctrine/Common/Proxy/ProxyGenerator.php
ProxyLogicTest.php in lib/doctrine/common/tests/Doctrine/Tests/Common/Proxy/ProxyLogicTest.php
ProxyMagicMethodsTest.php in lib/doctrine/common/tests/Doctrine/Tests/Common/Proxy/ProxyMagicMethodsTest.php
1 string reference to 'UnexpectedValueException'
ProxyLogicTest::testFailedLoadingWillThrowException in lib/doctrine/common/tests/Doctrine/Tests/Common/Proxy/ProxyLogicTest.php

File

lib/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