libtld 2.0.14
A library to determine the Top-Level Domain name of any Internet URI.
Public Member Functions | List of all members
invalid_domain Class Reference

Exception thrown when querying for data of an invalid domain. More...

Inheritance diagram for invalid_domain:
Inheritance graph
[legend]
Collaboration diagram for invalid_domain:
Collaboration graph
[legend]

Public Member Functions

 invalid_domain (const char *what_str="this tld object is not currently valid")
 Initialize the invalid_domain exception.
 

Detailed Description

This exception is raised when a certain set of functions are called in a tld_object which URI is not valid.

Instead of catching this error, you should call the is_valid() function before a function that may otherwise raise this exception and properly handle the case when it returns false.

Definition at line 192 of file tld.h.

Constructor & Destructor Documentation

◆ invalid_domain()

invalid_domain::invalid_domain ( const char *  what_str = "this tld object is not currently valid")
inline

This function initializes the invalid_domain exception with the specified what_str parameter as the what() string.

Parameters
[in]what_strA string representing the content of the what() string of the exception.

Definition at line 194 of file tld.h.


The documentation for this class was generated from the following files:

This document is part of the Snap! Websites Project.

Copyright by Made to Order Software Corp.