Constructors
Synopses
Declared in <bdljsn_error.h>
Create an Error object having the default value.
Error();
Create an Error object having the same value and the same allocator as the specified original object.
Error(bslmf::MovableRef<Error> original) noexcept;
Create an Error object having the default value, using the specified basicAllocator to supply memory.
explicit
Error(bslma::Allocator* basicAllocator);
Create an Error object by moving from the specified original using the specified basicAllocator.
Error(
bslmf::MovableRef<Error> original,
bslma::Allocator* basicAllocator);
Create an Error object having the value of the specified original object.
Error(
Error const& original,
bslma::Allocator* basicAllocator = 0);
Create an Error object having the specified location and message.
Error(
Location const& location,
std::string_view const& message,
bslma::Allocator* basicAllocator = 0);
Parameters
Name |
Description |
original |
the object to move from |
basicAllocator |
memory allocator; 0 uses the default |
location |
position in the document where the error occurred |
message |
description of the error |
Created with MrDocs