afadeevz / oop

Object Oriented Programming (Labs)
MIT License
0 stars 0 forks source link

Замечания по программе HTTPURL #16

Closed oMystique closed 6 years ago

oMystique commented 6 years ago
alexey-malov commented 6 years ago
class CUrlParsingError
    : public std::invalid_argument
{
public:
    static CUrlParsingError PortOutOfRange();
    static CUrlParsingError InvalidURL(const std::string& url);
    static CUrlParsingError InvalidProtocol(const std::string& protocol);
    static CUrlParsingError InvalidDomain(const std::string& domain);
    static CUrlParsingError InvalidPort(const std::string& port);
    static CUrlParsingError InvalidPort(uint16_t port);

private:
    CUrlParsingError(const std::string& message);
};
alexey-malov commented 6 years ago
oMystique commented 6 years ago