Unroutable
Exceptions for requests that cannot be routed to a controller method.
- Copyright
- 2015-2016 Appertly
- License
- Apache-2.0
Constructors / Destructors
| Returns | Signature and Description |
|---|---|
void | __construct(, , , )Creates a new Unroutable. |
Instance Methods
| Returns | Signature and Description |
|---|---|
ImmMap<string,string> | Gets the headers to set. |
Static Methods
| Returns | Signature and Description |
|---|---|
Unroutable | fromRoute()Creates a new Unroutable based on a failed Aura Route. |
Method Details
__construct
public function
__construct(string $message = "", int $code = 0, ?Exception $cause = null, ImmMap<string,string> $headers = ImmMap{})Creates a new Unroutable.
| Name | Type | Description |
|---|---|---|
$message | string | |
$code | int | |
$cause | ?Exception | |
$headers | ImmMap<string,string> |
fromRoute
public static function
fromRoute(Route $failedRoute)Creates a new Unroutable based on a failed Aura Route.
| Name | Type | Description |
|---|---|---|
$failedRoute | Route | The failed Aura Route |
| Type | Description |
|---|---|
Unroutable | A new Unroutable |
getHeaders
public function
getHeaders()Gets the headers to set.
| Type | Description |
|---|---|
ImmMap<string,string> | associative array of header names to values |