libzypp
10.5.0
|
00001 /*---------------------------------------------------------------------\ 00002 | ____ _ __ __ ___ | 00003 | |__ / \ / / . \ . \ | 00004 | / / \ V /| _/ _/ | 00005 | / /__ | | | | | | | 00006 | /_____||_| |_| |_| | 00007 | | 00008 \---------------------------------------------------------------------*/ 00012 #ifndef ZYPP_URL_URLEXCEPTION_H 00013 #define ZYPP_URL_URLEXCEPTION_H 00014 00015 #include <zypp/base/Exception.h> 00016 00017 00019 namespace zypp 00020 { 00021 00023 namespace url 00024 { 00025 00026 00027 // --------------------------------------------------------------- 00031 class UrlException: public zypp::Exception 00032 { 00033 public: 00034 UrlException() 00035 : zypp::Exception("Url exception") 00036 {} 00037 00038 UrlException(const std::string &msg) 00039 : zypp::Exception(msg) 00040 {} 00041 00042 virtual ~UrlException() throw() {}; 00043 }; 00044 00045 // --------------------------------------------------------------- 00049 class UrlDecodingException: public UrlException 00050 { 00051 public: 00052 UrlDecodingException() 00053 : UrlException("Url NUL decoding exception") 00054 {} 00055 00056 UrlDecodingException(const std::string &msg) 00057 : UrlException(msg) 00058 {} 00059 00060 virtual ~UrlDecodingException() throw() {}; 00061 }; 00062 00063 // --------------------------------------------------------------- 00067 class UrlParsingException: public UrlException 00068 { 00069 public: 00070 UrlParsingException() 00071 : UrlException("Url parsing failure exception") 00072 {} 00073 00074 UrlParsingException(const std::string &msg) 00075 : UrlException(msg) 00076 {} 00077 00078 virtual ~UrlParsingException() throw() {}; 00079 }; 00080 00081 // --------------------------------------------------------------- 00085 class UrlBadComponentException: public UrlException 00086 { 00087 public: 00088 UrlBadComponentException() 00089 : UrlException("Url bad component exception") 00090 {} 00091 00092 UrlBadComponentException(const std::string &msg) 00093 : UrlException(msg) 00094 {} 00095 00096 virtual ~UrlBadComponentException() throw() {}; 00097 }; 00098 00099 00100 // --------------------------------------------------------------- 00104 class UrlNotAllowedException: public UrlException 00105 { 00106 public: 00107 UrlNotAllowedException() 00108 : UrlException("Url not allowed component exception") 00109 {} 00110 00111 UrlNotAllowedException(const std::string &msg) 00112 : UrlException(msg) 00113 {} 00114 00115 virtual ~UrlNotAllowedException() throw() {}; 00116 }; 00117 00118 00119 // --------------------------------------------------------------- 00124 class UrlNotSupportedException: public UrlException 00125 { 00126 public: 00127 UrlNotSupportedException() 00128 : UrlException("Url parsing unsupported exception") 00129 {} 00130 00131 UrlNotSupportedException(const std::string &msg) 00132 : UrlException(msg) 00133 {} 00134 00135 virtual ~UrlNotSupportedException() throw() {}; 00136 }; 00137 00138 00140 } // namespace url 00142 00144 } // namespace zypp 00146 00147 #endif /* ZYPP_URL_URLEXCEPTION_H */ 00148 /* 00149 ** vim: set ts=2 sts=2 sw=2 ai et: 00150 */