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

Error that indicates that the protocol is not supported. More...

Inherits BPrivate::Network::BError.

Public Member Functions

 BUnsupportedProtocol (BString origin, BUrl url, BStringList supportedProtocols)
 Create a new unsupported protocol error. More...
 
 BUnsupportedProtocol (const char *origin, BUrl url, BStringList supportedProtocols)
 Create a new unsupported protocol error. More...
 
virtual const char * Message () const noexcept override
 Access the string representation of the message. More...
 
const BStringListSupportedProtocols () const
 A list of protocols that are supported. More...
 
const BUrlUrl () const
 The URL that caused the issue. 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 that indicates that the protocol is not supported.

Since
Haiku R1

Constructor & Destructor Documentation

◆ BUnsupportedProtocol() [1/2]

BPrivate::Network::BUnsupportedProtocol::BUnsupportedProtocol ( const char *  origin,
BUrl  url,
BStringList  supportedProtocols 
)

Create a new unsupported protocol error.

Parameters
originA string representing where this error occured. It is advised to initialize it to __PRETTY_FUNCTION__ by default.
urlThe URL object with the unsupported protocol.
supportedProtocolsA list with the supported protocols.
Since
Haiku R1

◆ BUnsupportedProtocol() [2/2]

BPrivate::Network::BUnsupportedProtocol::BUnsupportedProtocol ( BString  origin,
BUrl  url,
BStringList  supportedProtocols 
)

Create a new unsupported protocol error.

Parameters
originA string representing where this error occured. It is advised to initialize it to __PRETTY_FUNCTION__ by default.
urlThe URL object with the unsupported protocol.
supportedProtocolsA list with the supported protocols.
Since
Haiku R1
Haiku R1

Member Function Documentation

◆ Message()

const char * BPrivate::Network::BUnsupportedProtocol::Message ( ) const
overridevirtualnoexcept

Access the string representation of the message.

Since
Haiku R1

Implements BPrivate::Network::BError.

◆ SupportedProtocols()

const BStringList & BPrivate::Network::BUnsupportedProtocol::SupportedProtocols ( ) const

A list of protocols that are supported.

Since
Haiku R1

◆ Url()

const BUrl & BPrivate::Network::BUnsupportedProtocol::Url ( ) const

The URL that caused the issue.

Since
Haiku R1