]>
Commit | Line | Data |
---|---|---|
412da427 | 1 | /* |
4ac4a490 | 2 | * Copyright (C) 1996-2017 The Squid Software Foundation and contributors |
412da427 | 3 | * |
bbc27441 AJ |
4 | * Squid software is distributed under GPLv2+ license and includes |
5 | * contributions from numerous individuals and organizations. | |
6 | * Please see the COPYING and CONTRIBUTORS files for details. | |
412da427 FC |
7 | */ |
8 | ||
9 | #ifndef SQUID_SBUFEXCEPTIONS_H | |
10 | #define SQUID_SBUFEXCEPTIONS_H | |
11 | ||
12 | #include "base/TextException.h" | |
13 | ||
412da427 FC |
14 | /** |
15 | * Exception raised when call parameters are not valid | |
16 | * \todo move to an Exceptions.h? | |
17 | */ | |
18 | class InvalidParamException : public TextException | |
19 | { | |
20 | public: | |
21 | explicit InvalidParamException(const char *aFilename = 0, int aLineNo = -1); | |
22 | }; | |
23 | ||
24 | /** | |
25 | * Exception raised when an attempt to resize a SBuf would cause it to reserve too big | |
26 | */ | |
27 | class SBufTooBigException : public TextException | |
28 | { | |
29 | public: | |
30 | explicit SBufTooBigException(const char *aFilename = 0, int aLineNo = -1); | |
31 | }; | |
32 | ||
33 | #endif /* SQUID_SBUFEXCEPTIONS_H */ | |
f53969cc | 34 |