[#BloombergLP-bslma-ExceptionGuard-2constructor-0b] = 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"] ---- template<class ALLOCATOR> ExceptionGuard( OBJECT const* object, int line, ALLOCATOR const& basicAllocator); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#