Skip to content

Kirby 4.2.0

$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 does not modify the existing $database object but returns a new object with the changes applied. Learn more →

Parent class

Kirby\Database\Database