1 #ifndef _SQUID_SRC_OUTOFBOUNDSEXCEPTION_H
2 #define _SQUID_SRC_OUTOFBOUNDSEXCEPTION_H
4 #include "base/TextException.h"
8 * Exception raised when the user is going out of bounds when accessing
9 * a char within the SBuf
11 class OutOfBoundsException
: public TextException
14 OutOfBoundsException(const SBuf
&buf
, SBuf::size_type
&pos
, const char *aFileName
= 0, int aLineNo
= -1);
15 virtual ~OutOfBoundsException() throw();
19 SBuf::size_type accessedPosition
;
22 #endif /* _SQUID_SRC_OUTOFBOUNDSEXCEPTION_H */