Added deprecated error to init()

| Q             | A
| ------------- | ---
| Fixed tickets | [#12622]
| License       | MIT