]> git.ipfire.org Git - thirdparty/squid.git/blame - src/SBufExceptions.h
SourceFormat Enforcement
[thirdparty/squid.git] / src / SBufExceptions.h
CommitLineData
412da427 1/*
bde978a6 2 * Copyright (C) 1996-2015 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 */
18class InvalidParamException : public TextException
19{
20public:
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 */
27class SBufTooBigException : public TextException
28{
29public:
30 explicit SBufTooBigException(const char *aFilename = 0, int aLineNo = -1);
31};
32
33#endif /* SQUID_SBUFEXCEPTIONS_H */
f53969cc 34