Esempio n. 1
0
<?php

class Pie_Exception_RequiredField extends Pie_Exception
{
}
Pie_Exception::add('Pie_Exception_RequiredField', '$field is required');
Esempio n. 2
0
<?php

class Pie_Exception_WrongValue extends Pie_Exception
{
}
Pie_Exception::add('Pie_Exception_WrongValue', '$field: expecting $range');
Esempio n. 3
0
<?php

class Pie_Exception_MissingObject extends Pie_Exception
{
}
Pie_Exception::add('Pie_Exception_MissingObject', 'Missing object $name');
Esempio n. 4
0
<?php

class Pie_Exception_MissingClass extends Pie_Exception
{
}
Pie_Exception::add('Pie_Exception_MissingClass', 'Missing class $class_name');
Esempio n. 5
0
<?php

class Pie_Exception_MissingFile extends Pie_Exception
{
}
Pie_Exception::add('Pie_Exception_MissingFile', 'Missing file $filename');
Esempio n. 6
0
<?php

class Pie_Exception_MissingFunction extends Pie_Exception
{
}
Pie_Exception::add('Pie_Exception_MissingFunction', 'Missing function $function_name');
Esempio n. 7
0
<?php

/**
 * @package users
 */
class Users_Exception_WrongPassword extends Pie_Exception
{
}
Pie_Exception::add('Users_Exception_WrongPassword', 'Wrong password for $identifier');
Esempio n. 8
0
<?php

class Pie_Exception_Recursion extends Pie_Exception
{
}
Pie_Exception::add('Pie_Exception_Recursion', 'Seems we have runaway recursive calls to $function_name');
Esempio n. 9
0
<?php

class Pie_Exception_WrongType extends Pie_Exception
{
}
Pie_Exception::add('Pie_Exception_WrongType', '$field is the wrong type, expecting $type.');
Esempio n. 10
0
<?php

class Pie_Exception_TestCaseFailed extends Pie_Exception_TestCase
{
}
Pie_Exception::add('Pie_Exception_TestCaseFailed', 'failed. $message');
Esempio n. 11
0
<?php

class Pie_Exception_MissingConfig extends Pie_Exception
{
}
Pie_Exception::add('Pie_Exception_MissingConfig', 'Missing configuration field $fieldpath');
Esempio n. 12
0
<?php

class Pie_Exception_MissingRow extends Pie_Exception
{
}
Pie_Exception::add('Pie_Exception_MissingRow', 'Missing $table with $criteria');
Esempio n. 13
0
<?php

class Pie_Exception_MissingRoute extends Pie_Exception
{
}
Pie_Exception::add('Pie_Exception_MissingRoute', 'Missing route $route_pattern');
Esempio n. 14
0
<?php

/**
 * @package users
 */
class Users_Exception_AlreadyVerified extends Pie_Exception
{
}
Pie_Exception::add('Users_Exception_AlreadyVerified', '$key has already been verified for another user');
Esempio n. 15
0
<?php

class Pie_Exception_TestCaseIncomplete extends Pie_Exception_TestCase
{
}
Pie_Exception::add('Pie_Exception_TestCaseIncomplete', 'incomplete. $message');
Esempio n. 16
0
<?php

class Pie_Exception_DbQuery extends Pie_Exception
{
}
Pie_Exception::add('Pie_Exception_DbQuery', 'DbQuery Exception: $message ... Query was: $sql');
Esempio n. 17
0
<?php

class Pie_Exception_TestCaseSkipped extends Pie_Exception_TestCase
{
}
Pie_Exception::add('Pie_Exception_TestCaseSkipped', 'skipped. $message');
Esempio n. 18
0
<?php

class Pie_Exception_DispatcherForward extends Pie_Exception
{
}
Pie_Exception::add('Pie_Exception_DispatcherForward', 'Dispatcher is forwarding to $uri', array('Pie_Dispatcher'));
Esempio n. 19
0
<?php

/**
 * @package users
 */
class Users_Exception_NotLoggedIn extends Pie_Exception
{
}
Pie_Exception::add('Users_Exception_NotLoggedIn', 'You are not logged in.');
Esempio n. 20
0
<?php

class Pie_Exception_MissingPlugin extends Pie_Exception
{
}
Pie_Exception::add('Pie_Exception_MissingPlugin', 'Missing plugin $plugin');
Esempio n. 21
0
<?php

class Pie_Exception_BadUrl extends Pie_Exception
{
}
Pie_Exception::add('Pie_Exception_BadUrl', 'Bad url $url (the base url is $base_url)');
Esempio n. 22
0
<?php

class Pie_Exception_InvalidInput extends Pie_Exception
{
}
Pie_Exception::add('Pie_Exception_InvalidInput', 'Invalid input encountered in $source');
Esempio n. 23
0
     *  "errfile" =>
     *  "errline" =>
     *  "fixTrace" => fixes the trace array to
     * @param array $input_fields
     *  Same as in Pie_Exception.
     */
    function __construct($params, $input_fields)
    {
        parent::__construct($params, $input_fields);
        if (!empty($params['fixTrace'])) {
            $this->fixTrace = true;
            if (isset($params['errfile']) && isset($params['errline'])) {
                $this->file = $params['errfile'];
                $this->line = $params['errline'];
            }
        }
    }
    function getTraceEx()
    {
        $trace = parent::getTrace();
        return array_slice($trace, 3);
    }
    function getTraceAsStringEx()
    {
        $str = parent::getTraceAsString();
        return implode("\n", array_slice(explode("\n", $str), 4));
    }
    protected $fixTrace = false;
}
Pie_Exception::add('Pie_Exception_PhpError', '(PHP error) $errstr');
Esempio n. 24
0
<?php

class Pie_Exception_DispatcherErrors extends Pie_Exception
{
}
Pie_Exception::add('Pie_Exception_DispatcherErrors', 'Dispatcher is displaying errors', array('Pie_Dispatcher'));
Esempio n. 25
0
<?php

abstract class Pie_Exception_TestCase extends Pie_Exception
{
}
Pie_Exception::add('Pie_Exception_TestCase', 'test case exception: $message');
Esempio n. 26
0
<?php

/**
 * @package users
 */
class Users_Exception_WrongState extends Pie_Exception
{
}
Pie_Exception::add('Users_Exception_WrongState', '$key is $state');
Esempio n. 27
0
<?php

class Pie_Exception_NotArray extends Pie_Exception
{
}
Pie_Exception::add('Pie_Exception_NotArray', 'Value under $keys is not an array');
Esempio n. 28
0
<?php

/**
 * @package users
 */
class Users_Exception_UsernameExists extends Pie_Exception
{
}
Pie_Exception::add('Users_Exception_UsernameExists', 'Someone else has that username');
Esempio n. 29
0
<?php

class Pie_Exception_FailedValidation extends Pie_Exception
{
}
Pie_Exception::add('Pie_Exception_FailedValidation', '$message');