sdbus++: events: create event classes
Generate an equivalent amount of exception class as the `errors.yaml`
supported and convert the examples to use it.
Tested:
```
‣ Type=error Endian=l Flags=1 Version=1 Cookie=9 ReplyCookie=2 Timestamp="Tue 2024-09-17 18:21:35.649674 UTC"
Sender=:1.2489 Destination=:1.2495
ErrorName=net.poettering.Calculator.DivisionByZero ErrorMessage="Attempted to divide by zero."
UniqueName=:1.2489
MESSAGE "s" {
STRING "Attempted to divide by zero.";
};
```
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I4b2671838639d1e8be1ccdf655b699a98b9c2116
diff --git a/example/yaml/net/poettering/Calculator.interface.yaml b/example/yaml/net/poettering/Calculator.interface.yaml
index f130e59..affc2d4 100644
--- a/example/yaml/net/poettering/Calculator.interface.yaml
+++ b/example/yaml/net/poettering/Calculator.interface.yaml
@@ -40,7 +40,7 @@
description: >
The result of (x/y).
errors:
- - self.Error.DivisionByZero
+ - self.DivisionByZero
- name: Clear
flags:
- unprivileged
@@ -65,7 +65,7 @@
description: >
The name of the owner of the Calculator.
errors:
- - self.Error.PermissionDenied
+ - self.PermissionDenied
signals:
- name: Cleared
description: >