Loading...
Searching...
No Matches
Public Member Functions | List of all members
BPrivate::Network::BInvalidUrl Class Reference

Error that indicates that the URL is not valid. More...

Inherits BPrivate::Network::BError.

Public Member Functions

 BInvalidUrl (BString origin, BUrl url)
 
 BInvalidUrl (const char *origin, BUrl url)
 Create a new error invalid URL error.
 
virtual const char * Message () const noexcept override
 Access the string representation of the message.
 
const BUrlUrl () const
 The URL that caused the issue.
 
- Public Member Functions inherited from BPrivate::Network::BError
 BError (BError &&error) noexcept
 Move constructor.
 
 BError (BString origin)
 Constructor that sets the origin.
 
 BError (const BError &error)
 Copy constructor.
 
 BError (const char *origin)
 Constructor that sets the origin.
 
virtual ~BError () noexcept
 Standard destructor.
 
virtual BString DebugMessage () const
 Retrieve a debug message that contains all info in this error.
 
virtual const char * Message () const noexcept=0
 Access the string representation of the message.
 
BErroroperator= (BError &&error) noexcept
 Move assignment operator.
 
BErroroperator= (const BError &error)
 Copy assignment operator.
 
virtual const char * Origin () const noexcept
 Access the string representation of the origin of the error.
 
size_t WriteToOutput (BDataIO *output) const
 Write the error description to an output.
 
void WriteToStream (std::ostream &stream) const
 Write the error description to an output stream.
 

Detailed Description

Error that indicates that the URL is not valid.

This error is raised as an exception when the caller tries to pass a BUrl object that does not contain a valid URL.

See also
BUrl::IsValid()
Since
Haiku R1

Constructor & Destructor Documentation

◆ BInvalidUrl() [1/2]

BPrivate::Network::BInvalidUrl::BInvalidUrl ( const char *  origin,
BUrl  url 
)

Create a new error invalid URL error.

Parameters
originA string representing where this error occured. It is advised to initialize it to __PRETTY_FUNCTION__ by default.
urlThe URL object that did not contain a valid URL.
Since
Haiku R1

◆ BInvalidUrl() [2/2]

BPrivate::Network::BInvalidUrl::BInvalidUrl ( BString  origin,
BUrl  url 
)

Create a new error invalid URL error.

Parameters
originA string representing where this error occured. It is advised to initialize it to __PRETTY_FUNCTION__ by default.
urlThe URL object that did not contain a valid URL.
Since
Haiku R1

Member Function Documentation

◆ Message()

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

Access the string representation of the message.

Since
Haiku R1

Implements BPrivate::Network::BError.

◆ Url()

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

The URL that caused the issue.

Since
Haiku R1