Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
208 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<?php | ||
/** | ||
* MantisBT - A PHP based bugtracking system | ||
* | ||
* MantisBT is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 2 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* MantisBT is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with MantisBT. If not, see <http://www.gnu.org/licenses/>. | ||
* | ||
* @copyright Copyright (C) 2002 - 2012 MantisBT Team - mantisbt-dev@lists.sourceforge. | ||
* @link http://www.mantisbt.org | ||
* @package MantisBT | ||
*/ | ||
|
||
namespace MantisBT\Exception\Email; | ||
use MantisBT\Exception\ExceptionAbstract; | ||
|
||
/** | ||
* Email Address Invalid Exception | ||
* @package MantisBT | ||
* @subpackage classes | ||
*/ | ||
class AddressInvalid extends ExceptionAbstract | ||
{ | ||
/** | ||
* Constructor | ||
* @param array $p_parameters parameters | ||
* @param \Exception previous exception | ||
*/ | ||
public function __construct($p_parameters = null, \Exception $p_previous = null) | ||
{ | ||
if ($p_parameters === null) { | ||
$t_message = lang_get('exception_email_invalid'); | ||
} else { | ||
$t_message = vsprintf( lang_get('exception_email_invalid'), $p_parameters); | ||
} | ||
parent::__construct($t_message, 500, $p_previous); | ||
} | ||
} | ||
?> |
48 changes: 48 additions & 0 deletions
48
core/classes/Exception/Email/DisposableAddressNotAllowed.class.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<?php | ||
/** | ||
* MantisBT - A PHP based bugtracking system | ||
* | ||
* MantisBT is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 2 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* MantisBT is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with MantisBT. If not, see <http://www.gnu.org/licenses/>. | ||
* | ||
* @copyright Copyright (C) 2002 - 2012 MantisBT Team - mantisbt-dev@lists.sourceforge. | ||
* @link http://www.mantisbt.org | ||
* @package MantisBT | ||
*/ | ||
|
||
namespace MantisBT\Exception\Email; | ||
use MantisBT\Exception\ExceptionAbstract; | ||
|
||
/** | ||
* Disposable Email Address Not Allowed Exception | ||
* @package MantisBT | ||
* @subpackage classes | ||
*/ | ||
class DisposableAddressNotAllowed extends ExceptionAbstract | ||
{ | ||
/** | ||
* Constructor | ||
* @param array $p_parameters parameters | ||
* @param \Exception previous exception | ||
*/ | ||
public function __construct($p_parameters = null, \Exception $p_previous = null) | ||
{ | ||
if ($p_parameters === null) { | ||
$t_message = lang_get('exception_email_disposable'); | ||
} else { | ||
$t_message = vsprintf( lang_get('exception_email_disposable'), $p_parameters); | ||
} | ||
parent::__construct($t_message, 500, $p_previous); | ||
} | ||
} | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<?php | ||
/** | ||
* MantisBT - A PHP based bugtracking system | ||
* | ||
* MantisBT is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 2 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* MantisBT is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with MantisBT. If not, see <http://www.gnu.org/licenses/>. | ||
* | ||
* @copyright Copyright (C) 2002 - 2012 MantisBT Team - mantisbt-dev@lists.sourceforge. | ||
* @link http://www.mantisbt.org | ||
* @package MantisBT | ||
*/ | ||
|
||
namespace MantisBT\Exception\PHP; | ||
use MantisBT\Exception\ExceptionAbstract; | ||
|
||
/** | ||
* Timezone Update Failed Exception | ||
* @package MantisBT | ||
* @subpackage classes | ||
*/ | ||
class TimezoneUpdateFailed extends ExceptionAbstract | ||
{ | ||
/** | ||
* Constructor | ||
* @param array $p_parameters parameters | ||
* @param \Exception previous exception | ||
*/ | ||
public function __construct($p_parameters = null, \Exception $p_previous = null) | ||
{ | ||
if ($p_parameters === null) { | ||
$t_message = lang_get('exception_updating_timezone'); | ||
} else { | ||
$t_message = vsprintf( lang_get('exception_updating_timezone'), $p_parameters); | ||
} | ||
parent::__construct($t_message, 500, $p_previous); | ||
} | ||
} | ||
?> |
48 changes: 48 additions & 0 deletions
48
core/classes/Exception/User/UserPreferencesNotFound.class.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<?php | ||
/** | ||
* MantisBT - A PHP based bugtracking system | ||
* | ||
* MantisBT is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 2 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* MantisBT is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with MantisBT. If not, see <http://www.gnu.org/licenses/>. | ||
* | ||
* @copyright Copyright (C) 2002 - 2012 MantisBT Team - mantisbt-dev@lists.sourceforge. | ||
* @link http://www.mantisbt.org | ||
* @package MantisBT | ||
*/ | ||
|
||
namespace MantisBT\Exception\User; | ||
use MantisBT\Exception\ExceptionAbstract; | ||
|
||
/** | ||
* User Preferences Not Found Exception | ||
* @package MantisBT | ||
* @subpackage classes | ||
*/ | ||
class UserPreferencesNotFound extends ExceptionAbstract | ||
{ | ||
/** | ||
* Constructor | ||
* @param array $p_parameters parameters | ||
* @param \Exception previous exception | ||
*/ | ||
public function __construct($p_parameters = null, \Exception $p_previous = null) | ||
{ | ||
if ($p_parameters === null) { | ||
$t_message = lang_get('exception_user_prefs_not_found'); | ||
} else { | ||
$t_message = vsprintf( lang_get('exception_user_prefs_not_found'), $p_parameters); | ||
} | ||
parent::__construct($t_message, 401, $p_previous); | ||
} | ||
} | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters