8#ifndef INCLUDED_BDLJSN_ERROR
9#define INCLUDED_BDLJSN_ERROR
124#include <bdlscm_version.h>
138#include <bsl_ostream.h>
139#include <bsl_string.h>
140#include <bsl_string_view.h>
273 bsl::ostream&
print(bsl::ostream& stream,
275 int spacesPerLevel = 4)
const;
305template <
class HASHALG>
332, d_message(basicAllocator)
340: d_location(location)
341, d_message(message, basicAllocator)
347: d_location(original.d_location)
348, d_message(original.d_message, basicAllocator)
364: d_location(
bslmf::MovableRefUtil::move(
365 bslmf::MovableRefUtil::access(original).d_location))
366, d_message(
bslmf::MovableRefUtil::move(
367 bslmf::MovableRefUtil::access(original).d_message),
382 d_message = rhs.d_message;
383 d_location = rhs.d_location;
467template <
class HASHALG>
471 using ::BloombergLP::bslh::hashAppend;
Definition bdljsn_error.h:157
~Error()
Destroy this object.
Definition bdljsn_error.h:373
const bsl::string & message() const
Return the message attribute of this object.
Definition bdljsn_error.h:438
Error & setMessage(const bsl::string_view &value)
Set the message attribute of this object to the specified value.
Definition bdljsn_error.h:413
friend void swap(Error &, Error &)
BSLMF_NESTED_TRAIT_DECLARATION(Error, bslma::UsesBslmaAllocator)
const Location & location() const
Return the location attribute of this object.
Definition bdljsn_error.h:432
Error & operator=(const Error &rhs)
Definition bdljsn_error.h:379
bslma::Allocator * allocator() const
Definition bdljsn_error.h:446
Error()
Definition bdljsn_error.h:323
bsl::ostream & print(bsl::ostream &stream, int level=0, int spacesPerLevel=4) const
BSLMF_NESTED_TRAIT_DECLARATION(Error, bslmf::IsBitwiseMoveable)
Error & setLocation(const Location &value)
Definition bdljsn_error.h:406
Error & reset()
Definition bdljsn_error.h:398
Definition bdljsn_location.h:168
Location & reset()
Definition bdljsn_location.h:311
Definition bslstl_stringview.h:441
Definition bslstl_string.h:1281
allocator_type get_allocator() const BSLS_KEYWORD_NOEXCEPT
Return the allocator used by this string to supply memory.
Definition bslstl_string.h:6723
void clear() BSLS_KEYWORD_NOEXCEPT
Definition bslstl_string.h:5430
static void swap(T *a, T *b)
Definition bslalg_swaputil.h:194
Definition bslma_allocator.h:457
Definition bslmf_movableref.h:751
#define BSLS_ASSERT(X)
Definition bsls_assert.h:1804
#define BSLS_IDENT(str)
Definition bsls_ident.h:195
#define BSLS_KEYWORD_NOEXCEPT
Definition bsls_keyword.h:632
void hashAppend(HASH_ALGORITHM &hashAlg, const baljsn::EncoderTestAddress &object)
Definition baljsn_encoder_testtypes.h:9236
Definition bdljsn_error.h:143
bool operator!=(const Error &lhs, const Error &rhs)
void swap(Error &a, Error &b)
bool operator==(const Error &lhs, const Error &rhs)
bsl::ostream & operator<<(bsl::ostream &stream, const Error &object)
void hashAppend(HASHALG &hashAlgorithm, const Error &object)
Definition bdlbb_blob.h:576
Definition bslma_usesbslmaallocator.h:343
Definition bslmf_isbitwisemoveable.h:718
static MovableRef< t_TYPE > move(t_TYPE &reference) BSLS_KEYWORD_NOEXCEPT
Definition bslmf_movableref.h:1060
static t_TYPE & access(t_TYPE &ref) BSLS_KEYWORD_NOEXCEPT
Definition bslmf_movableref.h:1032