[#BloombergLP-bdljsn-Error-operator_assign-01] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdljsn.adoc[bdljsn]::xref:BloombergLP/bdljsn/Error.adoc[Error]::operator= :relfileprefix: ../../../ :mrdocs: Assign to this object the value of the specified `rhs` object, and return a non‐`const` reference to this object. == Synopsis Declared in `<bdljsn_error.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdljsn/Error.adoc[Error]& operator=(xref:BloombergLP/bslmf/MovableRef.adoc[bslmf::MovableRef<Error>] rhs); ---- == Description The allocators of this object and `rhs` both remain unchanged. If `rhs` and this object have the same allocator then the value of `rhs` becomes unspecified but valid, and no exceptions will be thrown; otherwise `rhs` is unchanged (and an exception may be thrown). == Return Value a non‐`const` reference to this object == Parameters [cols="1,4"] |=== | Name| Description | *rhs* | the object to move from |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#