Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:24
erlang
6867-stdlib-Add-callback-attributes-to-erl_erro...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 6867-stdlib-Add-callback-attributes-to-erl_error.patch of Package erlang
From 28c0a56369c9dd758927c267dd560de61443d82c Mon Sep 17 00:00:00 2001 From: Lukas Larsson <lukas@erlang.org> Date: Wed, 27 Sep 2023 20:53:06 +0200 Subject: [PATCH 07/10] stdlib: Add callback attributes to erl_error --- lib/stdlib/src/erl_error.erl | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/stdlib/src/erl_error.erl b/lib/stdlib/src/erl_error.erl index cd8a8b737b..121710c032 100644 --- a/lib/stdlib/src/erl_error.erl +++ b/lib/stdlib/src/erl_error.erl @@ -37,6 +37,15 @@ stack_trim_fun => stack_trim_fun(), format_fun => format_fun()}. +-callback format_error(Reason, StackTrace) -> ErrorDescription when + Reason :: term(), + StackTrace :: erlang:stacktrace(), + ArgumentPosition :: pos_integer(), + ErrorDescription :: #{ ArgumentPosition => + unicode:chardata(), + general => unicode:chardata(), + reason => unicode:chardata()}. + -spec format_exception(Class, Reason, StackTrace) -> unicode:chardata() when Class :: 'error' | 'exit' | 'throw', Reason :: term(), -- 2.35.3
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor