Skip to content
Snippets Groups Projects
Commit a75b5519 authored by Steffen Gebert's avatar Steffen Gebert
Browse files

[FEATURE] Group HttpExceptions by Error type

Change-Id: I739cc983d280a77e1737d15fe9c2a2e9b30e5771
Resolves: #28624
Reviewed-on: http://review.typo3.org/3960
Reviewed-by: Stefan Neufeind
Reviewed-by: Philipp Gampe
Reviewed-by: Xavier Perseguers
Tested-by: Xavier Perseguers
Reviewed-by: Steffen Gebert
Tested-by: Steffen Gebert
parent 8859a6b9
No related merge requests found
......@@ -134,6 +134,8 @@ $t3libClasses = array(
't3lib_error_errorhandlerinterface' => PATH_t3lib . 'error/interface.t3lib_error_errorhandlerinterface.php',
't3lib_error_exceptionhandlerinterface' => PATH_t3lib . 'error/interface.t3lib_error_exceptionhandlerinterface.php',
't3lib_error_http_statusexception' => PATH_t3lib . 'error/http/class.t3lib_error_http_statusexception.php',
't3lib_error_http_abstractservererrorexception' => PATH_t3lib . 'error/http/class.t3lib_error_http_abstractservererrorexception.php',
't3lib_error_http_abstractclienterrorexception' => PATH_t3lib . 'error/http/class.t3lib_error_http_abstractclienterrorexception.php',
't3lib_error_http_badrequestexception' => PATH_t3lib . 'error/http/class.t3lib_error_http_badrequestexception.php',
't3lib_error_http_unauthorizedexception' => PATH_t3lib . 'error/http/class.t3lib_error_http_unauthorizedexception.php',
't3lib_error_http_forbiddenexception' => PATH_t3lib . 'error/http/class.t3lib_error_http_forbiddenexception.php',
......
<?php
/***************************************************************
* Copyright notice
*
* (c) 2011 Steffen Gebert <steffen.gebert@typo3.org>
* All rights reserved
*
* This script is part of the TYPO3 project. The TYPO3 project 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.
*
* The GNU General Public License can be found at
* http://www.gnu.org/copyleft/gpl.html.
*
* This script 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.
*
* This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/
/**
* HTTP Client Error Exception (Error 4xx)
*
* @author Steffen Gebert <steffen.gebert@typo3.org>
* @package TYPO3
* @subpackage error
*/
abstract class t3lib_error_http_AbstractClientErrorException extends t3lib_error_http_StatusException {
}
if (defined('TYPO3_MODE') && isset($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['t3lib/error/t3lib_error_http_clienterrorexception'])) {
include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['t3lib/error/t3lib_error_http_clienterrorexception']);
}
?>
\ No newline at end of file
<?php
/***************************************************************
* Copyright notice
*
* (c) 2011 Steffen Gebert <steffen.gebert@typo3.org>
* All rights reserved
*
* This script is part of the TYPO3 project. The TYPO3 project 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.
*
* The GNU General Public License can be found at
* http://www.gnu.org/copyleft/gpl.html.
*
* This script 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.
*
* This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/
/**
* HTTP Server Error Exception (Error 5xx)
*
* @author Steffen Gebert <steffen.gebert@typo3.org>
* @package TYPO3
* @subpackage error
*/
abstract class t3lib_error_http_AbstractServerErrorException extends t3lib_error_http_StatusException {
}
if (defined('TYPO3_MODE') && isset($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['t3lib/error/t3lib_error_http_abstractservererrorexception'])) {
include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['t3lib/error/t3lib_error_http_abstractservererrorexception']);
}
?>
\ No newline at end of file
......@@ -29,7 +29,7 @@
* @package TYPO3
* @subpackage error
*/
class t3lib_error_http_BadRequestException extends t3lib_error_http_StatusException {
class t3lib_error_http_BadRequestException extends t3lib_error_http_AbstractClientErrorException {
/**
* @var array HTTP Status Header lines
......
......@@ -29,7 +29,7 @@
* @package TYPO3
* @subpackage error
*/
class t3lib_error_http_ForbiddenException extends t3lib_error_http_StatusException {
class t3lib_error_http_ForbiddenException extends t3lib_error_http_AbstractClientErrorException {
/**
* @var array HTTP Status Header lines
......
......@@ -29,7 +29,7 @@
* @package TYPO3
* @subpackage error
*/
class t3lib_error_http_PageNotFoundException extends t3lib_error_http_StatusException {
class t3lib_error_http_PageNotFoundException extends t3lib_error_http_AbstractClientErrorException {
/**
* @var array HTTP Status Header lines
......
......@@ -29,7 +29,7 @@
* @package TYPO3
* @subpackage error
*/
class t3lib_error_http_ServiceUnavailableException extends t3lib_error_http_StatusException {
class t3lib_error_http_ServiceUnavailableException extends t3lib_error_http_AbstractServerErrorException {
/**
* @var array HTTP Status Header lines
......
......@@ -29,7 +29,7 @@
* @package TYPO3
* @subpackage error
*/
class t3lib_error_http_UnauthorizedException extends t3lib_error_http_StatusException {
class t3lib_error_http_UnauthorizedException extends t3lib_error_http_AbstractClientErrorException {
/**
* @var array HTTP Status Header lines
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment