Public Member Functions | List of all members
BPrivate::Network::BBorrowError Class Reference

Error while handling a BExclusiveBorrow or BBorrow object. More...

Inherits BPrivate::Network::BError.

Public Member Functions

 BBorrowError (const char *origin)
 Constructor that sets the origin. More...
 
virtual const char * Message () const noexcept override
 Get a pointer to the message describing the borrow error. More...
 
- Public Member Functions inherited from BPrivate::Network::BError
 BError (BError &&error) noexcept
 Move constructor. More...
 
 BError (BString origin)
 Constructor that sets the origin. More...
 
 BError (const BError &error)
 Copy constructor. More...
 
 BError (const char *origin)
 Constructor that sets the origin. More...
 
virtual ~BError () noexcept
 Standard destructor. More...
 
virtual BString DebugMessage () const
 Retrieve a debug message that contains all info in this error. More...
 
BErroroperator= (BError &&error) noexcept
 Move assignment operator. More...
 
BErroroperator= (const BError &error)
 Copy assignment operator. More...
 
virtual const char * Origin () const noexcept
 Access the string representation of the origin of the error. More...
 
size_t WriteToOutput (BDataIO *output) const
 Write the error description to an output. More...
 
void WriteToStream (std::ostream &stream) const
 Write the error description to an output stream. More...
 

Detailed Description

Error while handling a BExclusiveBorrow or BBorrow object.

Since
Haiku R1

Constructor & Destructor Documentation

◆ BBorrowError()

BPrivate::Network::BBorrowError::BBorrowError ( const char *  origin)
inline

Constructor that sets the origin.

Since
Haiku R1

Member Function Documentation

◆ Message()

const char * BPrivate::Network::BBorrowError::Message ( ) const
inlineoverridevirtualnoexcept

Get a pointer to the message describing the borrow error.

Since
Haiku R1

Implements BPrivate::Network::BError.