PHP Class Bolt\Exception\BootException

Author: Gawain Lynch ([email protected])
Inheritance: extends RuntimeExceptio\RuntimeException
Mostrar archivo Open project: bolt/bolt Class Usage Examples

Protected Properties

Property Type Description
$response Symfony\Component\HttpFoundation\Response

Public Methods

Method Description
__construct ( string $message, integer $code, Exception $previous = null, Response $response = null ) Constructor.
earlyException ( string $message ) Output an exception *very* early in the load-chain.
earlyExceptionComposer ( ) Exception due to a missing vendor/autoload.php file.
earlyExceptionMissingLoaderConfig ( ) Exception due to a missing .bolt.yml or .bolt.php file.
earlyExceptionVersion ( ) Exception due to a PHP version being unsupported.
getResponse ( ) : Response
hasResponse ( ) : boolean
setResponse ( Response $response )

Protected Methods

Method Description
getEarlyExceptionHtml ( ) : string Template for early exception HTML to be parsed by sprintf() prior to output.
getHintsComposer ( ) : string Footer hints for missing autoload.php exceptions.

Method Details

__construct() public method

Constructor.
public __construct ( string $message, integer $code, Exception $previous = null, Response $response = null )
$message string
$code integer
$previous Exception
$response Symfony\Component\HttpFoundation\Response

earlyException() public static method

Output an exception *very* early in the load-chain.
public static earlyException ( string $message )
$message string

earlyExceptionComposer() public static method

Exception due to a missing vendor/autoload.php file.
public static earlyExceptionComposer ( )

earlyExceptionMissingLoaderConfig() public static method

Exception due to a missing .bolt.yml or .bolt.php file.

earlyExceptionVersion() public static method

Exception due to a PHP version being unsupported.
public static earlyExceptionVersion ( )

getEarlyExceptionHtml() protected static method

Template for early exception HTML to be parsed by sprintf() prior to output.
protected static getEarlyExceptionHtml ( ) : string
return string

getHintsComposer() protected static method

Footer hints for missing autoload.php exceptions.
protected static getHintsComposer ( ) : string
return string

getResponse() public method

public getResponse ( ) : Response
return Symfony\Component\HttpFoundation\Response

hasResponse() public method

public hasResponse ( ) : boolean
return boolean

setResponse() public method

public setResponse ( Response $response )
$response Symfony\Component\HttpFoundation\Response

Property Details

$response protected_oe property

protected Response,Symfony\Component\HttpFoundation $response
return Symfony\Component\HttpFoundation\Response