Constructors
Synopses
Declared in <bdljsn_error.h>
Create an Error object having the default value (see ). Optionally specify a basicAllocator used to supply memory. If basicAllocator is 0, the currently installed default allocator is used.
Error();
Create a Error object having the same value and the same allocator as the specified original object. The value of original becomes unspecified but valid, and its allocator remains unchanged.
Error(bslmf::MovableRef<Error> original) noexcept;
Create an Error object having the default value, using the specified basicAllocator to supply memory. If basicAllocator is 0, the currently installed default allocator is used.
explicit
Error(bslma::Allocator* basicAllocator);
Create a Error object having the same value as the specified original object, and using the specified basicAllocator to supply memory. If basicAllocator is 0, the currently installed default allocator is used. The allocator of original remains unchanged. If original and the newly created object have the same allocator then the value of original becomes unspecified but valid, and no exceptions will be thrown; otherwise original is unchanged and an exception may be thrown.
Error(
bslmf::MovableRef<Error> original,
bslma::Allocator* basicAllocator);
Create an Error object having the value of the specified original object. Optionally specify a basicAllocator used to supply memory. If basicAllocator is 0, the currently installed default allocator is used.
Error(
Error const& original,
bslma::Allocator* basicAllocator = 0);
Create an Error object having the specified location and message. Optionally specify a basicAllocator used to supply memory. If basicAllocator is 0, the currently installed default allocator is used.
Error(
Location const& location,
std::string_view const& message,
bslma::Allocator* basicAllocator = 0);
Created with MrDocs