Menu

## error.php

2023-04-04 jj5 - help with error management.

..

##### Tags

link
  https://github.com/jj5/kickass-crypto

### Table of Contents

kickass_crypto_setup_environment() : void
  2023-04-05 jj5 - this function will set up a standard run-time environment.
kickass_crypto_handle_error() : mixed
  2023-04-05 jj5 - this function handles a PHP error by throwing it as an ErrorException. This function is called by PHP when it's registered as an error handler with the set_error_handler() function. This function doesn't throw if error reporting is disabled.

### Functions

#### kickass_crypto_setup_environment()

error.php : 27

2023-04-05 jj5 - this function will set up a standard run-time environment.

`kickass_crypto_setup_environment() : void`

##### Return values

void —

#### kickass_crypto_handle_error()

error.php : 50

2023-04-05 jj5 - this function handles a PHP error by throwing it as an ErrorException. This function is called by PHP when it's registered as an error handler with the set_error_handler() function. This function doesn't throw if error reporting is disabled.

`kickass_crypto_handle_error(int $errno, string $errstr, string $errfile, string $errline) : mixed`

##### Parameters

$errno : int

  the error number.

$errstr : string

  the error string.

$errfile : string

  the file the error was triggered from.

$errline : string

  the line in the file the error was triggered from.

##### Tags

throws
  ErrorException

  the PHP ErrorException class.

##### Return values

mixed —

## Search results