Skip to content

Latest commit

 

History

History
234 lines (141 loc) · 6.71 KB

ephp_error.md

File metadata and controls

234 lines (141 loc) · 6.71 KB

Module ephp_error

Data Types


error_level() = pos_integer()

error_type() = atom()

get_return_return() = {ok, undefined} | {return, undefined}

throw_error() = atom() | {error, error_type(), line(), error_level(), any()}

Function Index

add_message_handler/2
clear_last/1
destroy/1
error/1
error_reporting/2
get_error_handler_func/1
get_exception_handler_func/1
get_last/1
get_level/1
get_line/1
handle_error/2
remove_error_handler_func/1
remove_exception_handler_func/1
run_quiet/2
set_error_handler_func/3
set_exception_handler_func/2
set_output/2
set_output_handler/2
start_link/0

Function Details

add_message_handler/2


add_message_handler(Context::ephp:context_id(), Module::module()) -> ok

clear_last/1


clear_last(Context::ephp:context_id()) -> ok

destroy/1


destroy(ErrorsId::ephp:errors_id()) -> ok

error/1


error(X1::throw_error()) -> ok

error_reporting/2


error_reporting(Context::ephp:context_id(), Level::integer()) -> integer()

get_error_handler_func/1


get_error_handler_func(Context::ephp:context_id()) -> {callable(), errorlevel()} | undefined

get_exception_handler_func/1


get_exception_handler_func(Context::ephp:context_id()) -> callable() | undefined

get_last/1


get_last(Context::ephp:context_id()) -> ephp_array:ephp_array() | undefined

get_level/1


get_level(Level::pos_integer()) -> binary()

get_line/1


get_line(X1::line() | undefined) -> non_neg_integer() | undefined

handle_error/2


handle_error(Context::ephp:context_id(), X2::{error, error_type(), line(), binary(), error_level(), any()}) -> get_return_return()

remove_error_handler_func/1


remove_error_handler_func(Context::ephp:context_id()) -> ok

remove_exception_handler_func/1


remove_exception_handler_func(Context::ephp:context_id()) -> ok

run_quiet/2


run_quiet(Errors::ephp:errors_id(), Fun::function()) -> ok

set_error_handler_func/3


set_error_handler_func(Context::ephp:context_id(), Callable::callable(), ErrorLevel::errorlevel()) -> ok

set_exception_handler_func/2


set_exception_handler_func(Context::ephp:context_id(), Callable::callable()) -> ok

set_output/2


set_output(Context::ephp:context_id(), Text::binary()) -> ok

set_output_handler/2


set_output_handler(Context::ephp:context_id(), Module::module()) -> ok

start_link/0


start_link() -> {ok, ephp:errors_id()}