[#BloombergLP-bslma-ExceptionGuard-2constructor-01] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::xref:BloombergLP/bslma/ExceptionGuard.adoc[ExceptionGuard]::ExceptionGuard :relfileprefix: ../../../ :mrdocs: Create the exception guard for the specified `object` at the specified `line` number. Optionally, specify `basicAllocator` used to supply memory. == Synopsis Declared in `<bslma_exceptionguard.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- ExceptionGuard( OBJECT const* object, int line, xref:BloombergLP/bslma/Allocator.adoc[Allocator]* basicAllocator = 0); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#