]> git.ipfire.org Git - thirdparty/squid.git/blame - src/sbuf/OutOfBoundsException.h
Docs: Copyright updates for 2018 (#114)
[thirdparty/squid.git] / src / sbuf / OutOfBoundsException.h
CommitLineData
bbc27441 1/*
5b74111a 2 * Copyright (C) 1996-2018 The Squid Software Foundation and contributors
bbc27441
AJ
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
412da427
FC
9#ifndef _SQUID_SRC_OUTOFBOUNDSEXCEPTION_H
10#define _SQUID_SRC_OUTOFBOUNDSEXCEPTION_H
11
12#include "base/TextException.h"
65e41a45 13#include "sbuf/SBuf.h"
412da427
FC
14
15/**
16 * Exception raised when the user is going out of bounds when accessing
17 * a char within the SBuf
18 */
19class OutOfBoundsException : public TextException
20{
21public:
22 OutOfBoundsException(const SBuf &buf, SBuf::size_type &pos, const char *aFileName = 0, int aLineNo = -1);
23 virtual ~OutOfBoundsException() throw();
24
25protected:
496a9e97
FC
26 SBuf theThrowingBuf;
27 SBuf::size_type accessedPosition;
412da427
FC
28};
29
30#endif /* _SQUID_SRC_OUTOFBOUNDSEXCEPTION_H */
f53969cc 31