Function __global->warn_exit
Definitions
sources/global2.php
- This is a less-revealing alternative to fatal_exit, that is used for user-errors/common-corruption-scenarios.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $text | mixed | No | No | required parameter | N/A | N/A | The error message, provided in plain-text format or as HTML via do_lang_tempcode/protect_from_escaping (string or Tempcode) |
| $support_match_key_messages | boolean | No | No | False | N/A | N/A | Whether match key messages / redirects should be supported |
| $log_error | boolean | No | No | False | N/A | N/A | Whether to log the error |
| $http_status | ?integer | No | No | 500 | N/A | N/A | HTTP status to set (null: none) |
| $title | ?Tempcode | No | No | Null | N/A | N/A | Title to use show (null: default) |
| $image_url | ?URLPATH | No | No | Null | N/A | N/A | Image to show (null: default) |
Preview
Code (PHP)
/**
* This is a less-revealing alternative to fatal_exit, that is used for user-errors/common-corruption-scenarios.
*
* @param mixed $text The error message, provided in plain-text format or as HTML via do_lang_tempcode/protect_from_escaping (string or Tempcode)
* @param boolean $support_match_key_messages Whether match key messages / redirects should be supported
* @param boolean $log_error Whether to log the error
* @param ?integer $http_status HTTP status to set (null: none)
* @param ?Tempcode $title Title to use show (null: default)
* @param ?URLPATH $image_url Image to show (null: default)
*/
function warn_exit($text, bool $support_match_key_messages = false, bool $log_error = false, ?int $http_status = 500, ?object $title = null, ?string $image_url = null)
* This is a less-revealing alternative to fatal_exit, that is used for user-errors/common-corruption-scenarios.
*
* @param mixed $text The error message, provided in plain-text format or as HTML via do_lang_tempcode/protect_from_escaping (string or Tempcode)
* @param boolean $support_match_key_messages Whether match key messages / redirects should be supported
* @param boolean $log_error Whether to log the error
* @param ?integer $http_status HTTP status to set (null: none)
* @param ?Tempcode $title Title to use show (null: default)
* @param ?URLPATH $image_url Image to show (null: default)
*/
function warn_exit($text, bool $support_match_key_messages = false, bool $log_error = false, ?int $http_status = 500, ?object $title = null, ?string $image_url = null)
sources/minikernel.php
- This is a less-revealing alternative to fatal_exit, that is used for user-errors/common-corruption-scenarios.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $text | mixed | No | No | required parameter | N/A | N/A | The error message |
Preview
Code (PHP)
/**
* This is a less-revealing alternative to fatal_exit, that is used for user-errors/common-corruption-scenarios.
*
* @param mixed $text The error message
*/
function warn_exit($text)
* This is a less-revealing alternative to fatal_exit, that is used for user-errors/common-corruption-scenarios.
*
* @param mixed $text The error message
*/
function warn_exit($text)

