Skip to content

Kirby 5.2.2

$database->fail()

Sets the exception mode

$database->fail(bool $fail = true): Kirby\Database\Database

Parameters

Name Type Default
$fail bool true

Return type

Kirby\Database\Database

This method modifies the existing $database object it is applied to and returns it again.

Parent class

Kirby\Database\Database