]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/sbuf/Exceptions.h
2 * Copyright (C) 1996-2017 The Squid Software Foundation and contributors
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.
9 #ifndef SQUID_SBUFEXCEPTIONS_H
10 #define SQUID_SBUFEXCEPTIONS_H
12 #include "base/TextException.h"
15 * Exception raised when call parameters are not valid
16 * \todo move to an Exceptions.h?
18 class InvalidParamException
: public TextException
21 explicit InvalidParamException(const char *aFilename
= 0, int aLineNo
= -1);
25 * Exception raised when an attempt to resize a SBuf would cause it to reserve too big
27 class SBufTooBigException
: public TextException
30 explicit SBufTooBigException(const char *aFilename
= 0, int aLineNo
= -1);
33 #endif /* SQUID_SBUFEXCEPTIONS_H */