-rw-r--r-- | include/opkele/exception.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/include/opkele/exception.h b/include/opkele/exception.h index 753a818..a654d59 100644 --- a/include/opkele/exception.h +++ b/include/opkele/exception.h | |||
@@ -203,6 +203,25 @@ namespace opkele { | |||
203 | }; | 203 | }; |
204 | 204 | ||
205 | /** | 205 | /** |
206 | * exception thrown in case of failed discovery | ||
207 | */ | ||
208 | class failed_discovery : public exception { | ||
209 | public: | ||
210 | failed_discovery(OPKELE_E_PARS) | ||
211 | : exception(OPKELE_E_CONS) { } | ||
212 | }; | ||
213 | |||
214 | /** | ||
215 | * unsuccessfull xri resolution | ||
216 | */ | ||
217 | class failed_xri_resolution : public failed_discovery { | ||
218 | public: | ||
219 | long _code; | ||
220 | failed_xri_resolution(OPKELE_E_PARS,long _c=-1) | ||
221 | : failed_discovery(OPKELE_E_CONS), _code(_c) { } | ||
222 | }; | ||
223 | |||
224 | /** | ||
206 | * not implemented (think pure virtual) member function executed, signfies | 225 | * not implemented (think pure virtual) member function executed, signfies |
207 | * programmer error | 226 | * programmer error |
208 | */ | 227 | */ |