Symfony\Component\HttpKernel\Exception\HttpException
HttpException.
- Author: Kris Wallsmith <kris@symfony.com>
Synopsis
class HttpException
extends RuntimeException
implements
HttpExceptionInterface
{
- // members
- private $statusCode;
- private $headers;
- // Inherited members from RuntimeException
- protected $message;
- protected $code;
- protected $file;
- protected $line;
- // Inherited members from Exception
- protected $message;
- protected $code;
- protected $file;
- protected $line;
- // methods
- public void __construct()
- public void getStatusCode()
- public void getHeaders()
- // Inherited methods from RuntimeException
- public final string getMessage()
- public final Exception getPrevious()
- public final mixed getCode()
- public final string getFile()
- public final int getLine()
- public final array getTrace()
- public final string getTraceAsString()
- public string __toString()
- // Inherited methods from Exception
- public void __construct()
- public final string getMessage()
- public final Exception getPrevious()
- public final mixed getCode()
- public final string getFile()
- public final int getLine()
- public final array getTrace()
- public final string getTraceAsString()
- public string __toString()
Hierarchy
Extends
Extended by
- Symfony\Component\HttpKernel\Exception\ConflictHttpException
- Symfony\Component\HttpKernel\Exception\PreconditionRequiredHttpException
- Symfony\Component\HttpKernel\Exception\UnauthorizedHttpException
- Symfony\Component\HttpKernel\Exception\NotFoundHttpException
- Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException
- Symfony\Component\HttpKernel\Exception\ServiceUnavailableHttpException
- Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException
- Symfony\Component\HttpKernel\Exception\UnsupportedMediaTypeHttpException
- Symfony\Component\HttpKernel\Exception\BadRequestHttpException
- Symfony\Component\HttpKernel\Exception\LengthRequiredHttpException
- Symfony\Component\HttpKernel\Exception\NotAcceptableHttpException
- Symfony\Component\HttpKernel\Exception\PreconditionFailedHttpException
- Symfony\Component\HttpKernel\Exception\TooManyRequestsHttpException
- Symfony\Component\HttpKernel\Exception\GoneHttpException
Implements
Members
private
- $headers
- $statusCode
protected
- $code
—
int
The exception code - $code
—
int
The exception code - $file
—
string
The filename where the exception was created - $file
—
string
The filename where the exception was created - $line
—
int
The line where the exception was created - $line
—
int
The line where the exception was created - $message
—
string
The exception message - $message
—
string
The exception message
Methods
public
Inherited from RuntimeException
public
Inherited from Exception
public
- __toString() — String representation of the exception
- getCode() — Gets the Exception code
- getFile() — Gets the file in which the exception occurred
- getLine() — Gets the line in which the exception occurred
- getMessage() — Gets the Exception message
- getPrevious() — Returns previous Exception
- getTrace() — Gets the stack trace
- getTraceAsString() — Gets the stack trace as a string