wrap method Null safety
- dynamic cause
Wraps another exception into an application exception object.
If original exception is of ApplicationException type it is returned without changes. Otherwise a new ApplicationException is created and original error is set as its cause.
cause
an original error object Returns an original or newly created ApplicationException