/opt/alt/php55/usr/share/pear/Symfony/Component/HttpKernel/DataCollector
NameSizeModeActions
Util/-0755rm
ConfigDataCollector.php62700644editdlrm
DataCollector.php13250644editdlrm
DataCollectorInterface.php10440644editdlrm
EventDataCollector.php26880644editdlrm
ExceptionDataCollector.php22080644editdlrm
LateDataCollectorInterface.php5180644editdlrm
LoggerDataCollector.php32570644editdlrm
MemoryDataCollector.php23630644editdlrm
RequestDataCollector.php104750644editdlrm
RouterDataCollector.php24150644editdlrm
TimeDataCollector.php32300644editdlrm
Edit: /opt/alt/php55/usr/share/pear/Symfony/Component/HttpKernel/DataCollector/ExceptionDataCollector.php (2208B)
* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\HttpKernel\DataCollector; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpKernel\Exception\FlattenException; /** * ExceptionDataCollector. * * @author Fabien Potencier */ class ExceptionDataCollector extends DataCollector { /** * {@inheritdoc} */ public function collect(Request $request, Response $response, \Exception $exception = null) { if (null !== $exception) { $this->data = array( 'exception' => FlattenException::create($exception), ); } } /** * Checks if the exception is not null. * * @return Boolean true if the exception is not null, false otherwise */ public function hasException() { return isset($this->data['exception']); } /** * Gets the exception. * * @return \Exception The exception */ public function getException() { return $this->data['exception']; } /** * Gets the exception message. * * @return string The exception message */ public function getMessage() { return $this->data['exception']->getMessage(); } /** * Gets the exception code. * * @return integer The exception code */ public function getCode() { return $this->data['exception']->getCode(); } /** * Gets the status code. * * @return integer The status code */ public function getStatusCode() { return $this->data['exception']->getStatusCode(); } /** * Gets the exception trace. * * @return array The exception trace */ public function getTrace() { return $this->data['exception']->getTrace(); } /** * {@inheritdoc} */ public function getName() { return 'exception'; } }