You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[](https://vaadin.com/directory/component/error-window-add-on)
2
+
[](https://vaadin.com/directory/component/error-window-add-on)
To see the demo, navigate to http://localhost:8080/
38
53
39
54
## Release notes
40
55
41
-
### Version 3.0.0
42
-
- First Vaadin 14+ release
43
-
44
-
## Roadmap
45
-
46
-
This component is developed as a hobby with no public roadmap or any guarantees of upcoming releases.
56
+
See [here](https://github.com/FlowingCode/ErrorWindowAddon/releases)
47
57
48
58
## Issue tracking
49
59
50
60
The issues for this add-on are tracked on its github.com page. All bug reports and feature requests are appreciated.
51
61
52
62
## Contributions
53
63
54
-
Contributions are welcome, but there are no guarantees that they are accepted as such. Process for contributing is the following:
64
+
Contributions are welcome, but there are no guarantees that they are accepted as such.
65
+
66
+
As first step, please refer to our [Development Conventions](https://github.com/FlowingCode/DevelopmentConventions) page to find information about Conventional Commits & Code Style requirements.
67
+
68
+
Then, follow these steps for creating a contribution:
55
69
56
-
- Fork this project
70
+
- Fork this project.
57
71
- Create an issue to this project about the contribution (bug or feature) if there is no such issue about it already. Try to keep the scope minimal.
58
72
- Develop and test the fix or functionality carefully. Only include minimum amount of code needed to fix the issue.
59
-
-Refer to the fixed issue in commit
60
-
- Send a pull request for the original project
61
-
- Comment on the original issue that you have implemented a fix for it
73
+
-For commit message, use [Conventional Commits](https://github.com/FlowingCode/DevelopmentConventions/blob/main/conventional-commits.md) to describe your change.
74
+
- Send a pull request for the original project.
75
+
- Comment on the original issue that you have implemented a fix for it.
62
76
63
77
## License & Author
64
78
65
79
This add-on is distributed under Apache License 2.0. For license terms, see LICENSE.txt.
66
80
67
-
ErrorWindow Addon is written by Flowing Code S.A.
68
-
69
-
81
+
Error Window Add-on is written by Flowing Code S.A.
82
+
83
+
# Developer Guide
84
+
85
+
## Getting started
86
+
87
+
```java
88
+
Button errorButton =
89
+
newButton(
90
+
"Throw Error",
91
+
event -> {
92
+
Integer.parseInt("asdf");
93
+
});
94
+
```
95
+
96
+
```java
97
+
Button throwErrorWithoutErrorHandler =
98
+
newButton(
99
+
"Throw Error without an error handler",
100
+
ev -> {
101
+
try {
102
+
Integer.parseInt("asdf");
103
+
} catch (NumberFormatException e) {
104
+
ErrorManager.showError(e);
105
+
}
106
+
});
107
+
```
108
+
109
+
## Special configuration when using Spring
110
+
111
+
By default, Vaadin Flow only includes ```com/vaadin/flow/component``` to be always scanned for UI components and views. For this reason, the add-on might need to be allowed in order to display correctly.
112
+
113
+
To do so, just add ```com.flowingcode``` to the ```vaadin.allowed-packages``` property in ```src/main/resources/application.properties```, like:
More information on Spring scanning configuration [here](https://vaadin.com/docs/latest/integrations/spring/configuration/#configure-the-scanning-of-packages).
0 commit comments