2 * Copyright (C) 1996-2016 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_SRC_OUTOFBOUNDSEXCEPTION_H
10 #define _SQUID_SRC_OUTOFBOUNDSEXCEPTION_H
12 #include "base/TextException.h"
13 #include "sbuf/SBuf.h"
16 * Exception raised when the user is going out of bounds when accessing
17 * a char within the SBuf
19 class OutOfBoundsException
: public TextException
22 OutOfBoundsException(const SBuf
&buf
, SBuf::size_type
&pos
, const char *aFileName
= 0, int aLineNo
= -1);
23 virtual ~OutOfBoundsException() throw();
27 SBuf::size_type accessedPosition
;
30 #endif /* _SQUID_SRC_OUTOFBOUNDSEXCEPTION_H */