<?php /** * @module Streams */ class Streams_Exception_Relation extends Q_Exception { } Q_Exception::add('Streams_Exception_Relation', 'Relation failed');
<?php /** * @module Streams */ class Streams_Exception_AlreadyForwarded extends Q_Exception { } Q_Exception::add('Streams_Exception_AlreadyForwarded', 'this invite has already been forwarded');
<?php /** * @module Users */ class Users_Exception_NoRegister extends Q_Exception { } Q_Exception::add('Users_Exception_NoRegister', 'Cannot directly register a user.');
<?php /** * @module Streams */ class Streams_Exception_NoSubscriptions extends Q_Exception { } Q_Exception::add('Streams_Exception_NoSubscriptions', 'Stream of type {{type}} does not support subscription');
<?php /** * @module Q */ class Q_Exception_MissingObject extends Q_Exception { } Q_Exception::add('Q_Exception_MissingObject', 'missing object {{name}}');
<?php /** * @module Users */ class Users_Exception_WrongPassphrase extends Q_Exception { } Q_Exception::add('Users_Exception_WrongPassphrase', 'That is not the right pass phrase');
<?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}}');
<?php /** * @module Q */ class Q_Exception_DbQuery extends Q_Exception { } Q_Exception::add('Q_Exception_DbQuery', 'DbQuery Exception: {{msg}} ... Query was: {{sql}}');
<?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}})');
<?php /** * @module Q */ class Q_Exception_TestCaseIncomplete extends Q_Exception_TestCase { } Q_Exception::add('Q_Exception_TestCaseIncomplete', 'incomplete. {{message}}');
<?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.');
<?php /** * @module Q */ class Q_Exception_MissingClass extends Q_Exception { } Q_Exception::add('Q_Exception_MissingClass', 'missing class {{className}}');
<?php /** * @module Q */ class Q_Exception_BadValue extends Q_Exception { } Q_Exception::add('Q_Exception_BadValue', 'bad value found in {{internal}}: {{problem}}');
<?php /** * @module Q */ class Q_Exception_NonceExpired extends Q_Exception { } Q_Exception::add('Q_Exception_NonceExpired', '{{message}}');
<?php /** * @module Q */ class Q_Exception_TestCaseFailed extends Q_Exception_TestCase { } Q_Exception::add('Q_Exception_TestCaseFailed', 'failed. {{message}}');
<?php /** * @module Users */ class Users_Exception_NoSuchUser extends Q_Exception { } Q_Exception::add('Users_Exception_NoSuchUser', 'No such user was found in the system');
<?php /** * @module Q */ class Q_Exception_ContentLength extends Q_Exception { } Q_Exception::add('Q_Exception_ContentLength', 'ContentLength exceeds {{exceeds}}');
<?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');
<?php /** * @module Assets */ class Assets_Exception_InvalidResponse extends Q_Exception { } Q_Exception::add('Assets_Exception_InvalidResponse', 'invalid response: {{response}}');
<?php /** * @module Streams */ class Streams_Exception_AlreadyDeclined extends Q_Exception { } Q_Exception::add('Streams_Exception_AlreadyDeclined', 'this invite has already been declined');
<?php /** * @module Users */ class Users_Exception_LoggedIn extends Q_Exception { } Q_Exception::add('Users_Exception_LoggedIn', 'You are logged in');
<?php /** * @module Streams */ class Streams_Exception_AlreadyRelated extends Q_Exception { } Q_Exception::add('Streams_Exception_AlreadyRelated', 'The stream is already {{state}}');
<?php /** * @module Assets */ class Assets_Exception_ChargeFailed extends Q_Exception { } Q_Exception::add('Assets_Exception_ChargeFailed', 'The attempt to charge failed');
<?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.');
<?php /** * @module Users */ class Users_Exception_AlreadyVerified extends Q_Exception { } Q_Exception::add('Users_Exception_AlreadyVerified', 'Another user has verified this {{key}}');
<?php /** * @module Users */ class Users_Exception_DeviceNotification extends Q_Exception { } Q_Exception::add('Users_Exception_DeviceNotification', 'Sending notification failed: $statusMessage');
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');
<?php /** * @module Users */ class Users_Exception_NotAuthorized extends Q_Exception { } Q_Exception::add('Users_Exception_NotAuthorized', 'You are not authorized to do this');
<?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.');