# j-Error

> j-Error: easy usage; errors are displayed only if the path contains an array in the form below:

Framework: jcomponent20
Product: jComponent 20 (jcomponent@20)
Language: en
Content-SHA256: 88efcbf55060f16869e3614e6b98ea2b2aadf80e9afb3c15532ae977d8996e0c
Snapshot: c0700e321579725c5cf4f5ace1ad7d2866d1b4f93c24a63c0b41b6b7998e976c
Sources: components@910ed1a86f6e72b4f031d3ad0dc7844f9fc5cb8e
Review: not-recorded

- errors are displayed only if the path contains an array in the form below:

```js
[
	{ error: 'Error Message 1' },
	{ error: 'Error Message 2' }
]
```

__Configuration__:
- `icon {String}` an error icon (default: `warning`)

Use it with `<ui-component name="error">`. When the component is not loaded yet, jComponent downloads it on first use from the address in `DEF.fallback` (the Componentator CDN by default). Author: Peter Širka. Source: the Componentator components repository, MIT license.

```html example.html
<ui-component name="error" path="mycustomerror"></ui-component>

<script>
	var mycustomerror = [{ error: 'Invalid Email Address' }, { error: 'Password is too short' }];
</script>
```
