You are here

class InvalidArgumentException in Plug 7

Same name in this branch
  1. 7 lib/Symfony/validator/Symfony/Component/Validator/Exception/InvalidArgumentException.php \Symfony\Component\Validator\Exception\InvalidArgumentException
  2. 7 lib/doctrine/common/lib/Doctrine/Common/Proxy/Exception/InvalidArgumentException.php \Doctrine\Common\Proxy\Exception\InvalidArgumentException

Proxy Invalid Argument Exception.

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

Hierarchy

Expanded class hierarchy of InvalidArgumentException

3 files declare their use of InvalidArgumentException
AbstractProxyFactory.php in lib/doctrine/common/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php
Autoloader.php in lib/doctrine/common/lib/Doctrine/Common/Proxy/Autoloader.php
ProxyGenerator.php in lib/doctrine/common/lib/Doctrine/Common/Proxy/ProxyGenerator.php
5 string references to 'InvalidArgumentException'
AbstractOperationTest::testGetMessagesFromUnknownDomain in lib/Symfony/translation/Tests/Catalogue/AbstractOperationTest.php
PersistentObjectTest::testAddInvalidToManyAssociation in lib/doctrine/common/tests/Doctrine/Tests/Common/Persistence/PersistentObjectTest.php
PersistentObjectTest::testSetInvalidToOneAssociation in lib/doctrine/common/tests/Doctrine/Tests/Common/Persistence/PersistentObjectTest.php
PhpFileCacheTest::testNotImplementsSetState in lib/doctrine/cache/tests/Doctrine/Tests/Common/Cache/PhpFileCacheTest.php
ProxyMagicMethodsTest::testInheritedMagicGetByRef in lib/doctrine/common/tests/Doctrine/Tests/Common/Proxy/ProxyMagicMethodsTest.php
@group DCOM-194

File

lib/doctrine/common/lib/Doctrine/Common/Proxy/Exception/InvalidArgumentException.php, line 32

Namespace

Doctrine\Common\Proxy\Exception
View source
class InvalidArgumentException extends BaseInvalidArgumentException implements ProxyException {

  /**
   * @return self
   */
  public static function proxyDirectoryRequired() {
    return new self('You must configure a proxy directory. See docs for details');
  }

  /**
   * @param string $className
   * @param string $proxyNamespace
   *
   * @return self
   */
  public static function notProxyClass($className, $proxyNamespace) {
    return new self(sprintf('The class "%s" is not part of the proxy namespace "%s"', $className, $proxyNamespace));
  }

  /**
   * @param string $name
   *
   * @return self
   */
  public static function invalidPlaceholder($name) {
    return new self(sprintf('Provided placeholder for "%s" must be either a string or a valid callable', $name));
  }

  /**
   * @return self
   */
  public static function proxyNamespaceRequired() {
    return new self('You must configure a proxy namespace');
  }

  /**
   * @param Proxy $proxy
   *
   * @return self
   */
  public static function unitializedProxyExpected(Proxy $proxy) {
    return new self(sprintf('Provided proxy of type "%s" must not be initialized.', get_class($proxy)));
  }

  /**
   * @param mixed $callback
   *
   * @return self
   */
  public static function invalidClassNotFoundCallback($callback) {
    $type = is_object($callback) ? get_class($callback) : gettype($callback);
    return new self(sprintf('Invalid \\$notFoundCallback given: must be a callable, "%s" given', $type));
  }

}

Members