Overview
  • Namespace
  • Class

Namespaces

  • Slim
    • Exception
    • Handlers
      • Strategies
    • Http
    • Interfaces
      • Http

Exceptions

  • ContainerException
  • ContainerValueNotFoundException
  • InvalidMethodException
  • MethodNotAllowedException
  • NotFoundException
  • SlimException

Class SlimException

Stop Exception

This Exception is thrown when the Slim application needs to abort processing and return control flow to the outer PHP script.

Exception implements Throwable
Extended by Slim\Exception\SlimException

Direct known subclasses

Slim\Exception\MethodNotAllowedException, Slim\Exception\NotFoundException

Namespace: Slim\Exception
Located at Exception/SlimException.php

Methods summary

public
# __construct( Psr\Http\Message\ServerRequestInterface $request, Psr\Http\Message\ResponseInterface $response )

Create new exception

Create new exception

Parameters

$request
$response

Overrides

Exception::__construct
public Psr\Http\Message\ServerRequestInterface
# getRequest( )

Get request

Get request

Returns

Psr\Http\Message\ServerRequestInterface
public Psr\Http\Message\ResponseInterface
# getResponse( )

Get response

Get response

Returns

Psr\Http\Message\ResponseInterface

Methods inherited from Exception

__toString(), __wakeup(), getCode(), getFile(), getLine(), getMessage(), getPrevious(), getTrace(), getTraceAsString()

Properties summary

protected Psr\Http\Message\ServerRequestInterface $request

A request object

A request object

#
protected Psr\Http\Message\ResponseInterface $response

A response object to send to the HTTP client

A response object to send to the HTTP client

#

Properties inherited from Exception

$code, $file, $line, $message

API documentation generated by ApiGen