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

Error that indicates that a string cannot be parsed as a valid HTTP timestamp. More...

Inherits BPrivate::Network::BError.

Public Member Functions

 InvalidInput (const char *origin, BString input)
 Constructor that sets the origin and the invalid input.
 
virtual BString DebugMessage () const override
 Retrieve a debug message that contains all info in this error.
 
virtual const char * Message () const noexcept override
 Access the string representation of the message.
 
- 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.
 

Public Attributes

BString input
 Copy of the original timestamp that could not be parsed.
 

Detailed Description

Error that indicates that a string cannot be parsed as a valid HTTP timestamp.

Since
Haiku R1

Constructor & Destructor Documentation

◆ InvalidInput()

BPrivate::Network::BHttpTime::InvalidInput::InvalidInput ( const char *  origin,
BString  input 
)

Constructor that sets the origin and the invalid input.

Since
Haiku R1

Member Function Documentation

◆ DebugMessage()

virtual BString BPrivate::Network::BHttpTime::InvalidInput::DebugMessage ( ) const
overridevirtual

Retrieve a debug message that contains all info in this error.

[Origin] Message of error
virtual const char * Origin() const noexcept
Access the string representation of the origin of the error.
virtual const char * Message() const noexcept override
Access the string representation of the message.
Exceptions
std::bad_allocIn the future this method may throw this exception when the memory for the debug message cannot be allocated.
Returns
A BString object that contains the debug message.
Since
Haiku R1

Reimplemented from BPrivate::Network::BError.

◆ Message()

virtual const char * BPrivate::Network::BHttpTime::InvalidInput::Message ( ) const
overridevirtualnoexcept

Access the string representation of the message.

Implementations should return a meaningful description of the error that occured. The primary target audience of these messages are developers, who (hopefully) see them during development, testing or in bug reports. However, if it makes sense to have the error messages be instructive to users too, then do not hesitate to do so.

Implementations of this function should never return NULL.

Since
Haiku R1

Implements BPrivate::Network::BError.

Member Data Documentation

◆ input

BString BPrivate::Network::BHttpTime::InvalidInput::input

Copy of the original timestamp that could not be parsed.

Since
Haiku R1