Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
217 commits
Select commit Hold shift + click to select a range
0a60019
New translations current.json (French)
arnaud4d Oct 10, 2025
b536b0e
New translations current.json (Spanish)
arnaud4d Oct 10, 2025
fa6cac5
New translations current.json (Japanese)
arnaud4d Oct 10, 2025
c45cc9e
New translations current.json (Portuguese, Brazilian)
arnaud4d Oct 10, 2025
74ee770
New translations updates.md (Japanese)
arnaud4d Oct 10, 2025
7388a73
New translations error-handling.md (French)
arnaud4d Oct 10, 2025
4a3e80a
New translations error-handling.md (Spanish)
arnaud4d Oct 10, 2025
73be0ae
New translations error-handling.md (Japanese)
arnaud4d Oct 10, 2025
00cf0e2
New translations error-handling.md (Portuguese, Brazilian)
arnaud4d Oct 10, 2025
c0e7142
New translations updates.md (French)
arnaud4d Oct 10, 2025
2b6bbc2
New translations updates.md (Spanish)
arnaud4d Oct 10, 2025
6a68712
New translations updates.md (Japanese)
arnaud4d Oct 10, 2025
a1c7aaf
New translations updates.md (Portuguese, Brazilian)
arnaud4d Oct 10, 2025
b2b1270
New translations orda-events.md (French)
arnaud4d Oct 10, 2025
b3b498d
New translations orda-events.md (Spanish)
arnaud4d Oct 10, 2025
8ab6628
New translations orda-events.md (Japanese)
arnaud4d Oct 10, 2025
7fa14ce
New translations orda-events.md (Portuguese, Brazilian)
arnaud4d Oct 10, 2025
3456249
New translations version-20-r10.json (French)
arnaud4d Oct 10, 2025
916059b
New translations version-20-r10.json (Spanish)
arnaud4d Oct 10, 2025
324c2f6
New translations version-20-r10.json (Japanese)
arnaud4d Oct 10, 2025
fcdc294
New translations version-20-r10.json (Portuguese, Brazilian)
arnaud4d Oct 10, 2025
f86fa30
New translations version-20-r9.json (French)
arnaud4d Oct 10, 2025
bef37b4
New translations version-20-r9.json (Spanish)
arnaud4d Oct 10, 2025
1de537e
New translations version-20-r9.json (Japanese)
arnaud4d Oct 10, 2025
2908669
New translations version-20-r9.json (Portuguese, Brazilian)
arnaud4d Oct 10, 2025
1899b20
New translations updates.md (Japanese)
arnaud4d Oct 10, 2025
187ebe1
New translations components.md (Japanese)
arnaud4d Oct 10, 2025
7913fde
New translations version-20-r8.json (French)
arnaud4d Oct 10, 2025
e55e06f
New translations version-20-r8.json (Spanish)
arnaud4d Oct 10, 2025
5c3975b
New translations version-20-r8.json (Japanese)
arnaud4d Oct 10, 2025
47c7cc3
New translations version-20-r8.json (Portuguese, Brazilian)
arnaud4d Oct 10, 2025
44ded70
New translations version-21.json (French)
arnaud4d Oct 10, 2025
2bd55b1
New translations version-21.json (Spanish)
arnaud4d Oct 10, 2025
59748cb
New translations version-21.json (Japanese)
arnaud4d Oct 10, 2025
b88747e
New translations version-21.json (Portuguese, Brazilian)
arnaud4d Oct 10, 2025
9f784f8
New translations collectionclass.md (French)
arnaud4d Oct 10, 2025
979ffdb
New translations collectionclass.md (Spanish)
arnaud4d Oct 10, 2025
1dc750a
New translations collectionclass.md (Japanese)
arnaud4d Oct 10, 2025
6a9b792
New translations collectionclass.md (Portuguese, Brazilian)
arnaud4d Oct 10, 2025
1ea9508
New translations cryptokeyclass.md (French)
arnaud4d Oct 10, 2025
7c88f3c
New translations cryptokeyclass.md (Spanish)
arnaud4d Oct 10, 2025
8487954
New translations cryptokeyclass.md (Japanese)
arnaud4d Oct 10, 2025
61ae105
New translations cryptokeyclass.md (Portuguese, Brazilian)
arnaud4d Oct 10, 2025
1e56216
New translations dataclassclass.md (French)
arnaud4d Oct 10, 2025
42a8e41
New translations dataclassclass.md (Spanish)
arnaud4d Oct 10, 2025
4779d49
New translations dataclassclass.md (Japanese)
arnaud4d Oct 10, 2025
1741950
New translations dataclassclass.md (Portuguese, Brazilian)
arnaud4d Oct 10, 2025
2ee42d0
New translations datastoreclass.md (French)
arnaud4d Oct 10, 2025
3ad86d4
New translations datastoreclass.md (Spanish)
arnaud4d Oct 10, 2025
a156c33
New translations datastoreclass.md (Japanese)
arnaud4d Oct 10, 2025
d92a5aa
New translations datastoreclass.md (Portuguese, Brazilian)
arnaud4d Oct 10, 2025
87c1e07
New translations emailobjectclass.md (Portuguese, Brazilian)
arnaud4d Oct 10, 2025
bb4053b
New translations entityclass.md (French)
arnaud4d Oct 10, 2025
c530c58
New translations entityclass.md (Spanish)
arnaud4d Oct 10, 2025
e846b10
New translations entityclass.md (Japanese)
arnaud4d Oct 10, 2025
47c41c9
New translations entityclass.md (Portuguese, Brazilian)
arnaud4d Oct 10, 2025
28c7d5b
New translations entityselectionclass.md (Japanese)
arnaud4d Oct 10, 2025
c316b55
New translations httprequestclass.md (French)
arnaud4d Oct 10, 2025
7df832d
New translations httprequestclass.md (Spanish)
arnaud4d Oct 10, 2025
50a58f3
New translations imaptransporterclass.md (French)
arnaud4d Oct 10, 2025
de1d22e
New translations imaptransporterclass.md (Spanish)
arnaud4d Oct 10, 2025
aa1b8f6
New translations imaptransporterclass.md (Japanese)
arnaud4d Oct 10, 2025
4e09141
New translations imaptransporterclass.md (Portuguese, Brazilian)
arnaud4d Oct 10, 2025
2f26cb5
New translations incomingmessageclass.md (French)
arnaud4d Oct 10, 2025
6599ce0
New translations incomingmessageclass.md (Spanish)
arnaud4d Oct 10, 2025
fc6eb4e
New translations incomingmessageclass.md (Japanese)
arnaud4d Oct 10, 2025
b426cb9
New translations incomingmessageclass.md (Portuguese, Brazilian)
arnaud4d Oct 10, 2025
e4796c8
New translations signalclass.md (Japanese)
arnaud4d Oct 10, 2025
c383bd3
New translations systemworkerclass.md (Spanish)
arnaud4d Oct 10, 2025
242ccdc
New translations systemworkerclass.md (Portuguese, Brazilian)
arnaud4d Oct 10, 2025
e44367c
New translations tcpconnectionclass.md (Spanish)
arnaud4d Oct 10, 2025
c000e2f
New translations tcpconnectionclass.md (Japanese)
arnaud4d Oct 10, 2025
ee16c1f
New translations tcpeventclass.md (French)
arnaud4d Oct 10, 2025
ee784b7
New translations tcpeventclass.md (Portuguese, Brazilian)
arnaud4d Oct 10, 2025
228e063
New translations webserverclass.md (Portuguese, Brazilian)
arnaud4d Oct 10, 2025
94bebe0
New translations websocketclass.md (French)
arnaud4d Oct 10, 2025
aca3f76
New translations websocketclass.md (Spanish)
arnaud4d Oct 10, 2025
72efef8
New translations websocketclass.md (Japanese)
arnaud4d Oct 10, 2025
151ad9c
New translations websocketclass.md (Portuguese, Brazilian)
arnaud4d Oct 10, 2025
4085060
New translations websocketconnectionclass.md (Portuguese, Brazilian)
arnaud4d Oct 10, 2025
fcd1695
New translations cli.md (French)
arnaud4d Oct 10, 2025
f61e192
New translations cli.md (Spanish)
arnaud4d Oct 10, 2025
1fc11f4
New translations cli.md (Japanese)
arnaud4d Oct 10, 2025
0eb92d9
New translations cli.md (Portuguese, Brazilian)
arnaud4d Oct 10, 2025
0fe790d
New translations log.md (Portuguese, Brazilian)
arnaud4d Oct 10, 2025
476eb40
New translations classes.md (French)
arnaud4d Oct 10, 2025
6c339a0
New translations classes.md (Spanish)
arnaud4d Oct 10, 2025
8cb1b8e
New translations classes.md (Japanese)
arnaud4d Oct 10, 2025
1ae6a65
New translations classes.md (Portuguese, Brazilian)
arnaud4d Oct 10, 2025
45cda61
New translations dt_number.md (French)
arnaud4d Oct 10, 2025
118c1bd
New translations dt_number.md (Spanish)
arnaud4d Oct 10, 2025
8d7d2f5
New translations dt_number.md (Japanese)
arnaud4d Oct 10, 2025
901a603
New translations dt_number.md (Portuguese, Brazilian)
arnaud4d Oct 10, 2025
05f9fdf
New translations error-handling.md (French)
arnaud4d Oct 10, 2025
2eac646
New translations error-handling.md (Spanish)
arnaud4d Oct 10, 2025
49d46c7
New translations error-handling.md (Japanese)
arnaud4d Oct 10, 2025
b5ccfcd
New translations error-handling.md (Portuguese, Brazilian)
arnaud4d Oct 10, 2025
4be8b21
New translations debuglogfiles.md (French)
arnaud4d Oct 10, 2025
7ccba39
New translations debuglogfiles.md (Spanish)
arnaud4d Oct 10, 2025
fa368d0
New translations debuglogfiles.md (Japanese)
arnaud4d Oct 10, 2025
9ebf4ff
New translations debuglogfiles.md (Portuguese, Brazilian)
arnaud4d Oct 10, 2025
d5b074e
New translations building.md (Spanish)
arnaud4d Oct 10, 2025
3006b6c
New translations labels.md (Japanese)
arnaud4d Oct 10, 2025
7003c51
New translations onafteredit.md (French)
arnaud4d Oct 10, 2025
4efd823
New translations onafteredit.md (Spanish)
arnaud4d Oct 10, 2025
dd76faa
New translations onafteredit.md (Japanese)
arnaud4d Oct 10, 2025
c01f96d
New translations onafteredit.md (Portuguese, Brazilian)
arnaud4d Oct 10, 2025
ddb2460
New translations develop-components.md (French)
arnaud4d Oct 10, 2025
cc9354e
New translations develop-components.md (Spanish)
arnaud4d Oct 10, 2025
cabd945
New translations develop-components.md (Japanese)
arnaud4d Oct 10, 2025
6965b5a
New translations develop-components.md (Portuguese, Brazilian)
arnaud4d Oct 10, 2025
da34b70
New translations createstylesheet.md (French)
arnaud4d Oct 10, 2025
505b0fe
New translations createstylesheet.md (Spanish)
arnaud4d Oct 10, 2025
c529b64
New translations createstylesheet.md (Japanese)
arnaud4d Oct 10, 2025
d550af7
New translations createstylesheet.md (Portuguese, Brazilian)
arnaud4d Oct 10, 2025
d5b1d05
New translations formeditor.md (French)
arnaud4d Oct 10, 2025
bddca90
New translations formeditor.md (Spanish)
arnaud4d Oct 10, 2025
615588c
New translations formeditor.md (Japanese)
arnaud4d Oct 10, 2025
b597b44
New translations formeditor.md (Portuguese, Brazilian)
arnaud4d Oct 10, 2025
eb0ad0e
New translations pictures.md (French)
arnaud4d Oct 10, 2025
e2b181e
New translations pictures.md (Spanish)
arnaud4d Oct 10, 2025
871f2e5
New translations pictures.md (Japanese)
arnaud4d Oct 10, 2025
843863d
New translations pictures.md (Portuguese, Brazilian)
arnaud4d Oct 10, 2025
43bd4d0
New translations properties_markers.md (French)
arnaud4d Oct 10, 2025
dbcb33f
New translations properties_markers.md (Spanish)
arnaud4d Oct 10, 2025
36f6131
New translations properties_markers.md (Portuguese, Brazilian)
arnaud4d Oct 10, 2025
673bd74
New translations button_overview.md (Spanish)
arnaud4d Oct 10, 2025
2745352
New translations button_overview.md (Japanese)
arnaud4d Oct 10, 2025
20c08a7
New translations button_overview.md (Portuguese, Brazilian)
arnaud4d Oct 10, 2025
034816f
New translations checkbox_overview.md (Spanish)
arnaud4d Oct 10, 2025
45b78ab
New translations dropdownlist_overview.md (Portuguese, Brazilian)
arnaud4d Oct 10, 2025
69a0373
New translations listbox_overview.md (French)
arnaud4d Oct 10, 2025
cba891d
New translations listbox_overview.md (Spanish)
arnaud4d Oct 10, 2025
27234c6
New translations listbox_overview.md (Japanese)
arnaud4d Oct 10, 2025
89b3b01
New translations listbox_overview.md (Portuguese, Brazilian)
arnaud4d Oct 10, 2025
0015f46
New translations properties_object.md (French)
arnaud4d Oct 10, 2025
de6fdd6
New translations properties_object.md (Spanish)
arnaud4d Oct 10, 2025
656ce82
New translations properties_object.md (Japanese)
arnaud4d Oct 10, 2025
cde8cfc
New translations properties_object.md (Portuguese, Brazilian)
arnaud4d Oct 10, 2025
2b09601
New translations properties_text.md (French)
arnaud4d Oct 10, 2025
6560e6f
New translations properties_text.md (Spanish)
arnaud4d Oct 10, 2025
4aef2f1
New translations radio_overview.md (Spanish)
arnaud4d Oct 10, 2025
1452ada
New translations write-class-method.md (French)
arnaud4d Oct 10, 2025
5bc4245
New translations write-class-method.md (Spanish)
arnaud4d Oct 10, 2025
6f9299f
New translations write-class-method.md (Japanese)
arnaud4d Oct 10, 2025
35635e4
New translations write-class-method.md (Portuguese, Brazilian)
arnaud4d Oct 10, 2025
781918a
New translations command-name.md (French)
arnaud4d Oct 10, 2025
376dffb
New translations command-name.md (Spanish)
arnaud4d Oct 10, 2025
3a6904d
New translations command-name.md (Japanese)
arnaud4d Oct 10, 2025
60b7d18
New translations compile-project.md (French)
arnaud4d Oct 10, 2025
9e198b9
New translations compile-project.md (Spanish)
arnaud4d Oct 10, 2025
d396087
New translations compile-project.md (Japanese)
arnaud4d Oct 10, 2025
f219b3c
New translations compile-project.md (Portuguese, Brazilian)
arnaud4d Oct 10, 2025
26aeb09
New translations dialog.md (French)
arnaud4d Oct 10, 2025
d2f5e33
New translations dialog.md (Spanish)
arnaud4d Oct 10, 2025
a04b9f7
New translations dialog.md (Japanese)
arnaud4d Oct 10, 2025
d6f7b2b
New translations dialog.md (Portuguese, Brazilian)
arnaud4d Oct 10, 2025
1cf2da0
New translations folder.md (Japanese)
arnaud4d Oct 10, 2025
08781eb
New translations form-edit.md (French)
arnaud4d Oct 10, 2025
6400c29
New translations form-edit.md (Spanish)
arnaud4d Oct 10, 2025
41dd99e
New translations form-edit.md (Japanese)
arnaud4d Oct 10, 2025
906656e
New translations form-edit.md (Portuguese, Brazilian)
arnaud4d Oct 10, 2025
c39e9d1
New translations form-event.md (French)
arnaud4d Oct 10, 2025
7755ab5
New translations form-event.md (Spanish)
arnaud4d Oct 10, 2025
9285b2a
New translations form-event.md (Japanese)
arnaud4d Oct 10, 2025
7a4bd0c
New translations form-event.md (Portuguese, Brazilian)
arnaud4d Oct 10, 2025
9a31433
New translations form-load.md (French)
arnaud4d Oct 10, 2025
5c33bdc
New translations form-load.md (Spanish)
arnaud4d Oct 10, 2025
0aeb964
New translations form-load.md (Japanese)
arnaud4d Oct 10, 2025
1058215
New translations form-load.md (Portuguese, Brazilian)
arnaud4d Oct 10, 2025
6d76d64
New translations form.md (French)
arnaud4d Oct 10, 2025
ea0543f
New translations form.md (Spanish)
arnaud4d Oct 10, 2025
51c62d9
New translations form.md (Japanese)
arnaud4d Oct 10, 2025
fb4b74f
New translations form.md (Portuguese, Brazilian)
arnaud4d Oct 10, 2025
cd5e3d5
New translations license-info.md (French)
arnaud4d Oct 10, 2025
3cdedf5
New translations license-info.md (Spanish)
arnaud4d Oct 10, 2025
7ec677b
New translations license-info.md (Japanese)
arnaud4d Oct 10, 2025
377accb
New translations license-info.md (Portuguese, Brazilian)
arnaud4d Oct 10, 2025
f431399
New translations new-collection.md (French)
arnaud4d Oct 10, 2025
87bdea4
New translations new-collection.md (Spanish)
arnaud4d Oct 10, 2025
d61c1b3
New translations new-collection.md (Japanese)
arnaud4d Oct 10, 2025
3438467
New translations new-collection.md (Portuguese, Brazilian)
arnaud4d Oct 10, 2025
8d5350b
New translations new-shared-collection.md (Japanese)
arnaud4d Oct 10, 2025
1cc9bbc
New translations open-datastore.md (French)
arnaud4d Oct 10, 2025
be2e816
New translations open-datastore.md (Spanish)
arnaud4d Oct 10, 2025
3a98b09
New translations print-form.md (French)
arnaud4d Oct 10, 2025
427f17d
New translations print-form.md (Spanish)
arnaud4d Oct 10, 2025
77d14cf
New translations print-form.md (Japanese)
arnaud4d Oct 10, 2025
960488f
New translations print-form.md (Portuguese, Brazilian)
arnaud4d Oct 10, 2025
c1d69a7
New translations process-activity.md (French)
arnaud4d Oct 10, 2025
8cf8217
New translations process-activity.md (Spanish)
arnaud4d Oct 10, 2025
2315179
New translations process-activity.md (Japanese)
arnaud4d Oct 10, 2025
6cc2a50
New translations process-activity.md (Portuguese, Brazilian)
arnaud4d Oct 10, 2025
213fce7
New translations process-info.md (French)
arnaud4d Oct 10, 2025
b626b30
New translations process-number.md (French)
arnaud4d Oct 10, 2025
839cf8c
New translations process-number.md (Spanish)
arnaud4d Oct 10, 2025
32dc017
New translations process-number.md (Japanese)
arnaud4d Oct 10, 2025
a124cb1
New translations process-number.md (Portuguese, Brazilian)
arnaud4d Oct 10, 2025
0d42d62
New translations session-info.md (Japanese)
arnaud4d Oct 10, 2025
2072466
New translations session-info.md (Portuguese, Brazilian)
arnaud4d Oct 10, 2025
0d7be8b
New translations session-storage.md (French)
arnaud4d Oct 10, 2025
99021b4
New translations session-storage.md (Japanese)
arnaud4d Oct 10, 2025
69fc2c5
New translations session-storage.md (Portuguese, Brazilian)
arnaud4d Oct 10, 2025
a810e4b
New translations set-allowed-methods.md (French)
arnaud4d Oct 10, 2025
26e6933
New translations set-allowed-methods.md (Spanish)
arnaud4d Oct 10, 2025
adf5e40
New translations set-allowed-methods.md (Japanese)
arnaud4d Oct 10, 2025
9e7387c
New translations set-allowed-methods.md (Portuguese, Brazilian)
arnaud4d Oct 10, 2025
f350ad7
New translations string.md (French)
arnaud4d Oct 10, 2025
b743cb1
New translations string.md (Spanish)
arnaud4d Oct 10, 2025
d994228
New translations boolean.md (French)
arnaud4d Oct 10, 2025
15fb991
New translations string.md (French)
arnaud4d Oct 10, 2025
63c11ae
New translations this.md (Spanish)
arnaud4d Oct 10, 2025
66a7cae
New translations this.md (Japanese)
arnaud4d Oct 10, 2025
71b1dcc
New translations wa-set-context.md (Spanish)
arnaud4d Oct 10, 2025
753aca9
New translations zip-create-archive.md (French)
arnaud4d Oct 10, 2025
20f9338
New translations zip-create-archive.md (Spanish)
arnaud4d Oct 10, 2025
4d1ea39
New translations zip-create-archive.md (Japanese)
arnaud4d Oct 10, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion i18n/es/docusaurus-plugin-content-docs/current.json
Original file line number Diff line number Diff line change
Expand Up @@ -1201,7 +1201,7 @@
},
"sidebar.docs.link.Build4D": {
"message": "Build4D",
"description": "The label for link Build4D in sidebar docs, linking to https://github.com/4d-depot/Build4D?tab=readme-ov-file#readme"
"description": "The label for link Build4D in sidebar docs, linking to https://github.com/4d/Build4D"
},
"sidebar.docs.doc.Log Files": {
"message": "Archivos de registro",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ Es muy recomendable instalar un método global de gestión de errores en 4D Serv

:::

## Error o estado
## Predictable vs unpredictable errors

Muchas funciones de clase 4D, como `entity.save()` o `transporter.send()`, devuelven un objeto *status*. Este objeto se utiliza para almacenar errores "predecibles" en el contexto de ejecución, por ejemplo, una contraseña no válida, una entidad bloqueada, etc., que no detienen la ejecución del programa. Esta categoría de errores puede ser manejada por el código habitual.
Many 4D class functions, such as [`entity.save()`](../API/EntityClass.md#save) or [`transporter.send()`](../API/SMTPTransporterClass.md#send), return a object containing *status* information. This object is used to store **predictable** errors in the runtime context, e.g. invalid password, locked entity, etc., that do not require to stop program execution. This category of errors, also named **silent errors** errors, can be handled by regular code. When such errors occur in an error handling context, i.e. a [`Try`](#tryexpression), [`Try/Catch`](#trycatchend-try) or an [error-handling method](#installing-an-error-handling-method), they do not interrupt the execution and do not trigger the error handling (e.g. the `Catch` part of the [`Try/Catch`](#trycatchend-try) is not executed). They are not listed in the [`Last errors`](../commands/last-errors.md) collection. The error is only returned in the `status` and `statusText` properties of the returned object. It can be processed according to your business logic.

Otros errores "imprevisibles" son el error de escritura en el disco, el fallo de la red o, en general, cualquier interrupción inesperada. Esta categoría de errores genera excepciones definidas por [un *código*, un *mensaje* y una *firma*](#error-codes) y necesita ser manejada a través de un método de gestión de errores o una palabra clave `Try()`.
The other category of errors are **unpredictable** errors, also named **serious errors**. They include disk write error, network failure, or in general any unexpected interruption. This category of errors generates exceptions defined by [a *code*, a *message* and a *signature*](#error-codes). They interrupt the execution and trigger the error processing of the [`Try`](#tryexpression), [`Try/Catch`](#trycatchend-try) or [error-handling method](#installing-an-error-handling-method) features. They are listed in the [`Last errors`](../commands/last-errors.md) collection. Note that serious errors can also return values in the `status` and `statusText` properties, e.g. `dk status serious error` - "Other error".

## Instalación de un método de gestión de errores

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ Lea [**Novedades en 4D 21**](https://blog.4d.com/en-whats-new-in-4d-21/), la ent
- Lenguaje 4D:
- New "trim" commands to remove leading and trailing spaces from a string: [`Trim`](../commands/trim.md), [`Trim start`](../commands/trim-start.md), and [`Trim end`](../commands/trim-end.md).
- Los comandos [`Num`](../commands/num.md) y [`String`](../commands/string.md) han sido actualizados para soportar conversiones en diferentes bases (radix).
- [**Fixed bug list**](https://bugs.4d.fr/fixedbugslist?version=21): list of all bugs that have been fixed in 4D 21.

#### Vista previa para desarrolladores

Expand Down
26 changes: 13 additions & 13 deletions i18n/es/docusaurus-plugin-content-docs/current/ORDA/orda-events.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,19 +102,19 @@ When an error occurs in an event, the other events are stopped at the first rais

### Error object properties

| Propiedad | Tipo | Descripción | Set by the developer |
| ------------------ | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------- |
| errCode | Integer | Same as for [`Last errors`](../commands/last-errors.md) command | Sí |
| message | Text | Same as for [`Last errors`](../commands/last-errors.md) command | Sí |
| extraDescription | Object | Free information to set up | Sí |
| seriousError | Boolean | Used only with validate events (see below). Will insert a specific `status` value in the [`save()`](../API/EntityClass.md#save) or [`drop()`](../API/EntityClass.md#drop) function:<li>If true: `dk status serious validation error`</li><li>If false: `dk status validation failed`</li> | Yes (default is false) |
| componentSignature | Text | Always "DBEV" | No |

- The errors are stacked in the `errors` collection property of the **Result object** returned by the [`save()`](../API/EntityClass.md#save) or [`drop()`](../API/EntityClass.md#drop) functions.
- In case of an error triggered by a **validate** event, the `fatalError` property allows you to insert a specific `status` and its associated `statusText` in the **Result object** returned by the [`save()`](../API/EntityClass.md#save) or [`drop()`](../API/EntityClass.md#drop) functions:
- If **false**: `status` gets `dk status validation failed` and `statusText` gets "Mild Validation Error". Such errors do not require a [try catch](../Concepts/error-handling.md#trycatchend-try) and are not stacked in the errors returned by the [`Last errors`](../commands/last-errors.md) command.
- If **true**: `status` gets `dk status serious validation error` and `statusText` gets "Serious Validation Error". Such errors require a [try catch](../Concepts/error-handling.md#trycatchend-try) and are not stacked in the errors returned by the [`Last errors`](../commands/last-errors.md) command. They are raised at the end of the event and reach the client requesting the save/drop action (REST client for example).
- In case of an error triggered by a **saving/dropping** event, when an error object is returned, the error is always raised as a serious error (`dk status serious error`) whatever the `seriousError` property value.
| Propiedad | Tipo | Descripción | Set by the developer |
| ------------------ | ------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------- |
| errCode | Integer | Same as for [`Last errors`](../commands/last-errors.md) command | Sí |
| message | Text | Same as for [`Last errors`](../commands/last-errors.md) command | Sí |
| extraDescription | Object | Free information to set up | Sí |
| seriousError | Boolean | Used only with validate events (see below). <li>`True`: creates a [serious (unpredictable) error](../Concepts/error-handling.md#predictable-vs-unpredictable-errors) and triggers an exception. Adds the `dk status serious validation error` status</li><li>creates only a [silent (predictable) error](../Concepts/error-handling.md#predictable-vs-unpredictable-errors). Adds the `dk status validation failed` status</li> | Yes (default is false) |
| componentSignature | Text | Always "DBEV" | No |

- [Serious errors](../Concepts/error-handling.md#predictable-vs-unpredictable-errors) are stacked in the `errors` collection property of the **Result object** returned by the [`save()`](../API/EntityClass.md#save) or [`drop()`](../API/EntityClass.md#drop) functions.
- In case of an error triggered by a **validate** event, the `seriousError` property allows you to choose the level of the error to generate:
- If **true**: a serious error is thrown and should be handled by the [error processing code](../Concepts/error-handling.md#predictable-vs-unpredictable-errors), such as a [try catch](../Concepts/error-handling.md#trycatchend-try). In the result object of the calling function, `status` gets `dk status serious validation error` and `statusText` gets "Serious Validation Error". The error is raised at the end of the event and reach the client requesting the save/drop action (REST client for example).
- If **false** (default): a [silent (predictable) error is generated](../Concepts/error-handling.md#predictable-vs-unpredictable-errors). It does not trigger any exception and is not stacked in the errors returned by the [`Last errors`](../commands/last-errors.md) command. In the result object of the calling function, `status` gets `dk status validation failed` and `statusText` gets "Mild Validation Error".
- In case of an error triggered by a **saving/dropping** event, when an error object is returned, the error is always raised as a serious error whatever the `seriousError` property value.

## Event function description

Expand Down
2 changes: 1 addition & 1 deletion i18n/es/docusaurus-plugin-content-docs/version-20-R10.json
Original file line number Diff line number Diff line change
Expand Up @@ -797,7 +797,7 @@
},
"sidebar.docs.link.Build4D": {
"message": "Build4D",
"description": "The label for link Build4D in sidebar docs, linking to https://github.com/4d-depot/Build4D?tab=readme-ov-file#readme"
"description": "The label for link Build4D in sidebar docs, linking to https://github.com/4d/Build4D"
},
"sidebar.docs.doc.Log Files": {
"message": "Archivos de registro",
Expand Down
Loading
Loading