paulgoughbooks_old
This repository has no backups
This repository's network speed is throttled to 100KB/sec
Upgrade your account to fix these warnings, or use backups.vc for automated backups
@ 2
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 |
<?php namespace CodeIgniter\Database\Exceptions; class DataException extends \RuntimeException implements ExceptionInterface { /** * Used by the Model's trigger() method when the callback cannot be found. * * @param string $method * * @return \CodeIgniter\Database\Exceptions\DataException */ public static function forInvalidMethodTriggered(string $method) { return new static(lang('Database.invalidEvent', [$method])); } /** * Used by Model's insert/update methods when there isn't * any data to actually work with. * * @param string $mode * * @return \CodeIgniter\Database\Exceptions\DataException */ public static function forEmptyDataset(string $mode) { return new static(lang('Database.emptyDataset', [$mode])); } /** * Thrown when an argument for one of the Model's methods * were empty or otherwise invalid, and they could not be * to work correctly for that method. * * @param string $argument * * @return \CodeIgniter\Database\Exceptions\DataException */ public static function forInvalidArgument(string $argument) { return new static(lang('Database.invalidArgument', [$argument])); } public static function forInvalidAllowedFields(string $model) { return new static(lang('Database.invalidAllowedFields', [$model])); } public static function forTableNotFound(string $table) { return new static(lang('Database.tableNotFound', [$table])); } public static function forEmptyInputGiven(string $argument) { return new static(lang('Database.forEmptyInputGiven', [$argument])); } public static function forFindColumnHaveMultipleColumns() { return new static(lang('Database.forFindColumnHaveMultipleColumns')); } } |
Commits for paulgoughbooks_old/trunk/system/Database/Exceptions/DataException.php
Revision | Author | Commited | Message |
---|---|---|---|
2 | tporter | Tue 03 Nov, 2020 08:50:21 +0000 | Migration of Paul Goughs Books site to Codeignitor 4 |