Ejemplo n.º 1
0
<?php

/**
 * @module Streams
 */
class Streams_Exception_Relation extends Q_Exception
{
}
Q_Exception::add('Streams_Exception_Relation', 'Relation failed');
Ejemplo n.º 2
0
<?php

/**
 * @module Streams
 */
class Streams_Exception_AlreadyForwarded extends Q_Exception
{
}
Q_Exception::add('Streams_Exception_AlreadyForwarded', 'this invite has already been forwarded');
Ejemplo n.º 3
0
<?php

/**
 * @module Users
 */
class Users_Exception_NoRegister extends Q_Exception
{
}
Q_Exception::add('Users_Exception_NoRegister', 'Cannot directly register a user.');
Ejemplo n.º 4
0
<?php

/**
 * @module Streams
 */
class Streams_Exception_NoSubscriptions extends Q_Exception
{
}
Q_Exception::add('Streams_Exception_NoSubscriptions', 'Stream of type {{type}} does not support subscription');
Ejemplo n.º 5
0
<?php

/**
 * @module Q
 */
class Q_Exception_MissingObject extends Q_Exception
{
}
Q_Exception::add('Q_Exception_MissingObject', 'missing object {{name}}');
Ejemplo n.º 6
0
<?php

/**
 * @module Users
 */
class Users_Exception_WrongPassphrase extends Q_Exception
{
}
Q_Exception::add('Users_Exception_WrongPassphrase', 'That is not the right pass phrase');
Ejemplo n.º 7
0
<?php

/**
 * @module Q
 */
class Q_Exception_Recursion extends Q_Exception
{
}
Q_Exception::add('Q_Exception_Recursion', 'seems we have runaway recursive calls to {{function_name}}');
Ejemplo n.º 8
0
<?php

/**
 * @module Q
 */
class Q_Exception_DbQuery extends Q_Exception
{
}
Q_Exception::add('Q_Exception_DbQuery', 'DbQuery Exception: {{msg}} ... Query was: {{sql}}');
Ejemplo n.º 9
0
<?php

/**
 * @module Q
 */
class Q_Exception_BadUrl extends Q_Exception
{
}
Q_Exception::add('Q_Exception_BadUrl', 'bad url {{url}} (the base url is {{base_url}})');
Ejemplo n.º 10
0
<?php

/**
 * @module Q
 */
class Q_Exception_TestCaseIncomplete extends Q_Exception_TestCase
{
}
Q_Exception::add('Q_Exception_TestCaseIncomplete', 'incomplete. {{message}}');
Ejemplo n.º 11
0
<?php

/**
 * @module Q
 */
class Q_Exception_AppRequirement extends Q_Exception
{
}
Q_Exception::add('Q_Exception_AppRequirement', 'App \'{{by}}\' requires plugin \'{{plugin}}\' version $version or compatible.');
Ejemplo n.º 12
0
<?php

/**
 * @module Q
 */
class Q_Exception_MissingClass extends Q_Exception
{
}
Q_Exception::add('Q_Exception_MissingClass', 'missing class {{className}}');
Ejemplo n.º 13
0
<?php

/**
 * @module Q
 */
class Q_Exception_BadValue extends Q_Exception
{
}
Q_Exception::add('Q_Exception_BadValue', 'bad value found in {{internal}}: {{problem}}');
Ejemplo n.º 14
0
<?php

/**
 * @module Q
 */
class Q_Exception_NonceExpired extends Q_Exception
{
}
Q_Exception::add('Q_Exception_NonceExpired', '{{message}}');
Ejemplo n.º 15
0
<?php

/**
 * @module Q
 */
class Q_Exception_TestCaseFailed extends Q_Exception_TestCase
{
}
Q_Exception::add('Q_Exception_TestCaseFailed', 'failed. {{message}}');
Ejemplo n.º 16
0
<?php

/**
 * @module Users
 */
class Users_Exception_NoSuchUser extends Q_Exception
{
}
Q_Exception::add('Users_Exception_NoSuchUser', 'No such user was found in the system');
Ejemplo n.º 17
0
<?php

/**
 * @module Q
 */
class Q_Exception_ContentLength extends Q_Exception
{
}
Q_Exception::add('Q_Exception_ContentLength', 'ContentLength exceeds {{exceeds}}');
Ejemplo n.º 18
0
<?php

/**
 * @module Q
 */
class Q_Exception_AppRequirementVersion extends Q_Exception
{
}
Q_Exception::add('Q_Exception_AppRequirementVersion', 'App \'{{by}}\' requires plugin \'{{plugin}}\' version {{version}} or compatible. (You have: {{installed}}, compatible with {{compatible}})');
<?php

/**
 * @module Assets
 */
class Assets_Exception_PaymentMethodRequired extends Q_Exception
{
}
Q_Exception::add('Assets_Exception_PaymentMethodRequired', 'Please add a valid payment method');
Ejemplo n.º 20
0
<?php

/**
 * @module Assets
 */
class Assets_Exception_InvalidResponse extends Q_Exception
{
}
Q_Exception::add('Assets_Exception_InvalidResponse', 'invalid response: {{response}}');
Ejemplo n.º 21
0
<?php

/**
 * @module Streams
 */
class Streams_Exception_AlreadyDeclined extends Q_Exception
{
}
Q_Exception::add('Streams_Exception_AlreadyDeclined', 'this invite has already been declined');
Ejemplo n.º 22
0
<?php

/**
 * @module Users
 */
class Users_Exception_LoggedIn extends Q_Exception
{
}
Q_Exception::add('Users_Exception_LoggedIn', 'You are logged in');
Ejemplo n.º 23
0
<?php

/**
 * @module Streams
 */
class Streams_Exception_AlreadyRelated extends Q_Exception
{
}
Q_Exception::add('Streams_Exception_AlreadyRelated', 'The stream is already {{state}}');
Ejemplo n.º 24
0
<?php

/**
 * @module Assets
 */
class Assets_Exception_ChargeFailed extends Q_Exception
{
}
Q_Exception::add('Assets_Exception_ChargeFailed', 'The attempt to charge failed');
Ejemplo n.º 25
0
<?php

/**
 * @module Q
 */
class Q_Exception_SendingToNode extends Q_Exception
{
}
Q_Exception::add('Q_Exception_SendingToNode', 'Error sending {{method}} message to Node. Please try again later.');
Ejemplo n.º 26
0
<?php

/**
 * @module Users
 */
class Users_Exception_AlreadyVerified extends Q_Exception
{
}
Q_Exception::add('Users_Exception_AlreadyVerified', 'Another user has verified this {{key}}');
Ejemplo n.º 27
0
<?php

/**
 * @module Users
 */
class Users_Exception_DeviceNotification extends Q_Exception
{
}
Q_Exception::add('Users_Exception_DeviceNotification', 'Sending notification failed: $statusMessage');
Ejemplo n.º 28
0
        parent::__construct($params, $input_fields);
        if (!isset($params['code'])) {
            return;
        }
        switch ($params['code']) {
            case UPLOAD_ERR_INI_SIZE:
                $this->message = "the uploaded file exceeds the upload_max_filesize directive in php.ini.";
                break;
            case UPLOAD_ERR_FORM_SIZE:
                $this->message = "value: 2; The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form.";
                break;
            case UPLOAD_ERR_PARTIAL:
                $this->message = "value: 3; The uploaded file was only partially uploaded.";
                break;
            case UPLOAD_ERR_NO_FILE:
                $this->message = "value: 4; No file was uploaded.";
                break;
            case UPLOAD_ERR_NO_TMP_DIR:
                $this->message = "value: 6; Missing a temporary folder. Introduced in PHP 4.3.10 and PHP 5.0.3.";
                break;
            case UPLOAD_ERR_CANT_WRITE:
                $this->message = "value: 7; Failed to write file to disk. Introduced in PHP 5.1.0.";
                break;
            case UPLOAD_ERR_EXTENSION:
                $this->message = "a PHP extension stopped the file upload.";
                break;
        }
    }
}
Q_Exception::add('Q_Exception_Upload', 'upload error');
Ejemplo n.º 29
0
<?php

/**
 * @module Users
 */
class Users_Exception_NotAuthorized extends Q_Exception
{
}
Q_Exception::add('Users_Exception_NotAuthorized', 'You are not authorized to do this');
Ejemplo n.º 30
0
<?php

/**
 * @module Streams
 */
class Streams_Exception_RelationPending extends Q_Exception
{
}
Q_Exception::add('Streams_Exception_RelationPending', 'The stream has been alredy {{state}}. Please, wait for admin to approve.');