]> git.ipfire.org Git - thirdparty/squid.git/blob - src/sbuf/Exceptions.h
SourceFormat Enforcement
[thirdparty/squid.git] / src / sbuf / Exceptions.h
1 /*
2 * Copyright (C) 1996-2017 The Squid Software Foundation and contributors
3 *
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.
7 */
8
9 #ifndef SQUID_SBUFEXCEPTIONS_H
10 #define SQUID_SBUFEXCEPTIONS_H
11
12 #include "base/TextException.h"
13
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 */
34