minor
minor
The error messages that appear when, for example, a tl:TopLogicException is thrown are not designed in a consistent or clear manner in the Dezent theme.
The size of the icons varies depending on the severity of the error. For “large” error messages—those containing a lot of text—displaying the error message requires the entire available space on the screen.
The tl:InfoService displays messages much more effectively. In addition to the error message title and a description, it displays further information—such as stack traces—in a separate “Details” section. The “Details” section can be shown or hidden.
Implementation
The icons are now all the same size. The title has been slightly reduced in size. A “Details” section has been added that can be shown or hidden. An error message now consists of 4 parts:
- Error message icon
- Error message title
- Error message description
- Error message details (e.g., stack traces)
It now looks like this:
If you open the details, you’ll see
Test
Start Demo. Then openTechnical Demo > LayoutFramework#1 > Forms > Form Controls (inline) . There are buttons there to display error messages:
- failWithMultipleErrors
- failWithFatalTopLogicException
- failWithTopLogicExceptionInfo