php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
zend_exceptions.h File Reference
#include "zend_types.h"
#include "zend_globals.h"

Go to the source code of this file.

Functions

ZEND_API void zend_exception_set_previous (zend_object *exception, zend_object *add_previous)
 
ZEND_API void zend_exception_save (void)
 
ZEND_API void zend_exception_restore (void)
 
ZEND_API ZEND_COLD void zend_throw_exception_internal (zend_object *exception)
 
void zend_register_default_exception (void)
 
ZEND_API zend_class_entryzend_get_exception_base (zend_object *object)
 
ZEND_API zend_class_entryzend_exception_get_default (void)
 
ZEND_API zend_class_entryzend_get_error_exception (void)
 
ZEND_API void zend_register_default_classes (void)
 
ZEND_API ZEND_COLD zend_objectzend_throw_exception (zend_class_entry *exception_ce, const char *message, zend_long code)
 
ZEND_API ZEND_COLD zend_objectzend_throw_exception_ex (zend_class_entry *exception_ce, zend_long code, const char *format,...) ZEND_ATTRIBUTE_FORMAT(printf
 
ZEND_API ZEND_COLD zend_object ZEND_API ZEND_COLD void zend_throw_exception_object (zval *exception)
 
ZEND_API void zend_clear_exception (void)
 
ZEND_API zend_objectzend_throw_error_exception (zend_class_entry *exception_ce, zend_string *message, zend_long code, int severity)
 
ZEND_API ZEND_COLD zend_result zend_exception_error (zend_object *exception, int severity)
 
ZEND_NORETURN void zend_exception_uncaught_error (const char *prefix,...) ZEND_ATTRIBUTE_FORMAT(printf
 
ZEND_NORETURN void ZEND_API zend_stringzend_trace_to_string (HashTable *trace, bool include_main)
 
ZEND_API ZEND_COLD zend_objectzend_create_unwind_exit (void)
 
ZEND_API ZEND_COLD zend_objectzend_create_graceful_exit (void)
 
ZEND_API ZEND_COLD void zend_throw_unwind_exit (void)
 
ZEND_API ZEND_COLD void zend_throw_graceful_exit (void)
 
ZEND_API bool zend_is_unwind_exit (const zend_object *ex)
 
ZEND_API bool zend_is_graceful_exit (const zend_object *ex)
 

Variables

ZEND_API zend_class_entryzend_ce_throwable
 
ZEND_API zend_class_entryzend_ce_exception
 
ZEND_API zend_class_entryzend_ce_error_exception
 
ZEND_API zend_class_entryzend_ce_error
 
ZEND_API zend_class_entryzend_ce_compile_error
 
ZEND_API zend_class_entryzend_ce_parse_error
 
ZEND_API zend_class_entryzend_ce_type_error
 
ZEND_API zend_class_entryzend_ce_argument_count_error
 
ZEND_API zend_class_entryzend_ce_value_error
 
ZEND_API zend_class_entryzend_ce_arithmetic_error
 
ZEND_API zend_class_entryzend_ce_division_by_zero_error
 
ZEND_API zend_class_entryzend_ce_unhandled_match_error
 
ZEND_API zend_class_entryzend_ce_request_parse_body_exception
 
ZEND_API void(* zend_throw_exception_hook )(zend_object *ex)
 

Function Documentation

◆ zend_clear_exception()

ZEND_API void zend_clear_exception ( void )

Definition at line 234 of file zend_exceptions.c.

◆ zend_create_graceful_exit()

ZEND_API ZEND_COLD zend_object * zend_create_graceful_exit ( void )

Definition at line 1013 of file zend_exceptions.c.

◆ zend_create_unwind_exit()

ZEND_API ZEND_COLD zend_object * zend_create_unwind_exit ( void )

Definition at line 1008 of file zend_exceptions.c.

◆ zend_exception_error()

ZEND_API ZEND_COLD zend_result zend_exception_error ( zend_object * exception,
int severity )

Definition at line 898 of file zend_exceptions.c.

◆ zend_exception_get_default()

ZEND_API zend_class_entry * zend_exception_get_default ( void )

Definition at line 806 of file zend_exceptions.c.

◆ zend_exception_restore()

ZEND_API void zend_exception_restore ( void )

Definition at line 153 of file zend_exceptions.c.

◆ zend_exception_save()

ZEND_API void zend_exception_save ( void )

Definition at line 141 of file zend_exceptions.c.

◆ zend_exception_set_previous()

ZEND_API void zend_exception_set_previous ( zend_object * exception,
zend_object * add_previous )

Definition at line 96 of file zend_exceptions.c.

◆ zend_exception_uncaught_error()

ZEND_NORETURN void zend_exception_uncaught_error ( const char * prefix,
... )

◆ zend_get_error_exception()

ZEND_API zend_class_entry * zend_get_error_exception ( void )

Definition at line 813 of file zend_exceptions.c.

◆ zend_get_exception_base()

ZEND_API zend_class_entry * zend_get_exception_base ( zend_object * object)

Definition at line 90 of file zend_exceptions.c.

◆ zend_is_graceful_exit()

ZEND_API bool zend_is_graceful_exit ( const zend_object * ex)

Definition at line 1039 of file zend_exceptions.c.

◆ zend_is_unwind_exit()

ZEND_API bool zend_is_unwind_exit ( const zend_object * ex)

Definition at line 1034 of file zend_exceptions.c.

◆ zend_register_default_classes()

ZEND_API void zend_register_default_classes ( void )

Definition at line 32 of file zend_default_classes.c.

◆ zend_register_default_exception()

void zend_register_default_exception ( void )

Definition at line 755 of file zend_exceptions.c.

◆ zend_throw_error_exception()

ZEND_API zend_object * zend_throw_error_exception ( zend_class_entry * exception_ce,
zend_string * message,
zend_long code,
int severity )

Definition at line 873 of file zend_exceptions.c.

◆ zend_throw_exception()

ZEND_API ZEND_COLD zend_object * zend_throw_exception ( zend_class_entry * exception_ce,
const char * message,
zend_long code )

Definition at line 847 of file zend_exceptions.c.

◆ zend_throw_exception_ex()

ZEND_API ZEND_COLD zend_object * zend_throw_exception_ex ( zend_class_entry * exception_ce,
zend_long code,
const char * format,
... )

◆ zend_throw_exception_internal()

ZEND_API ZEND_COLD void zend_throw_exception_internal ( zend_object * exception)

Definition at line 174 of file zend_exceptions.c.

◆ zend_throw_exception_object()

ZEND_API ZEND_COLD zend_object ZEND_API ZEND_COLD void zend_throw_exception_object ( zval * exception)

Definition at line 990 of file zend_exceptions.c.

◆ zend_throw_graceful_exit()

ZEND_API ZEND_COLD void zend_throw_graceful_exit ( void )

Definition at line 1026 of file zend_exceptions.c.

◆ zend_throw_unwind_exit()

ZEND_API ZEND_COLD void zend_throw_unwind_exit ( void )

Definition at line 1018 of file zend_exceptions.c.

◆ zend_trace_to_string()

ZEND_NORETURN void ZEND_API zend_string * zend_trace_to_string ( HashTable * trace,
bool include_main )

Definition at line 592 of file zend_exceptions.c.

Variable Documentation

◆ zend_ce_argument_count_error

ZEND_API zend_class_entry* zend_ce_argument_count_error
extern

Definition at line 40 of file zend_exceptions.c.

◆ zend_ce_arithmetic_error

ZEND_API zend_class_entry* zend_ce_arithmetic_error
extern

Definition at line 42 of file zend_exceptions.c.

◆ zend_ce_compile_error

ZEND_API zend_class_entry* zend_ce_compile_error
extern

Definition at line 37 of file zend_exceptions.c.

◆ zend_ce_division_by_zero_error

ZEND_API zend_class_entry* zend_ce_division_by_zero_error
extern

Definition at line 43 of file zend_exceptions.c.

◆ zend_ce_error

ZEND_API zend_class_entry* zend_ce_error
extern

Definition at line 36 of file zend_exceptions.c.

◆ zend_ce_error_exception

ZEND_API zend_class_entry* zend_ce_error_exception
extern

Definition at line 35 of file zend_exceptions.c.

◆ zend_ce_exception

ZEND_API zend_class_entry* zend_ce_exception
extern

Definition at line 34 of file zend_exceptions.c.

◆ zend_ce_parse_error

ZEND_API zend_class_entry* zend_ce_parse_error
extern

Definition at line 38 of file zend_exceptions.c.

◆ zend_ce_request_parse_body_exception

ZEND_API zend_class_entry* zend_ce_request_parse_body_exception
extern

Definition at line 45 of file zend_exceptions.c.

◆ zend_ce_throwable

ZEND_API zend_class_entry* zend_ce_throwable
extern

Definition at line 33 of file zend_exceptions.c.

◆ zend_ce_type_error

ZEND_API zend_class_entry* zend_ce_type_error
extern

Definition at line 39 of file zend_exceptions.c.

◆ zend_ce_unhandled_match_error

ZEND_API zend_class_entry* zend_ce_unhandled_match_error
extern

Definition at line 44 of file zend_exceptions.c.

◆ zend_ce_value_error

ZEND_API zend_class_entry* zend_ce_value_error
extern

Definition at line 41 of file zend_exceptions.c.

◆ zend_throw_exception_hook

ZEND_API void(* zend_throw_exception_hook) (zend_object *ex) ( zend_object * ex)
extern

Definition at line 53 of file zend_exceptions.c.