CreateException constructor
Creates an error instance and assigns its values.
- correlation_id (optional) a unique transaction id to trace execution through call chain.
messageOrLocator
human-readable error or locator of the component that cannot be created.