The Gaudi Framework  master (da3d77e1)
Range.cpp
Go to the documentation of this file.
1 /***********************************************************************************\
2 * (c) Copyright 1998-2024 CERN for the benefit of the LHCb and ATLAS collaborations *
3 * *
4 * This software is distributed under the terms of the Apache version 2 licence, *
5 * copied verbatim in the file "LICENSE". *
6 * *
7 * In applying this licence, CERN does not waive the privileges and immunities *
8 * granted to it by virtue of its status as an Intergovernmental Organization *
9 * or submit itself to any jurisdiction. *
10 \***********************************************************************************/
11 // ============================================================================
12 // Include files
13 // ============================================================================
14 // GauduKernel
15 // ============================================================================
17 #include <GaudiKernel/Range.h>
18 // ============================================================================
34 // ============================================================================
35 /* Helpful function to throw an out-of-range exception for class Range_
36  * @param index invalid index
37  * @param size range size
38  */
39 // ============================================================================
40 void Gaudi::details::rangeException( const long /* index */, const size_t /* size */ ) {
41  throw GaudiException( "Out-of-Range for class Gaudi::Range_", "RangeError", StatusCode::FAILURE );
42 }
43 // ============================================================================
44 // The END
45 // ============================================================================
GaudiException.h
Gaudi::details::rangeException
GAUDI_API void rangeException(const long index, const size_t size)
Helpful function to throw an "out-of-range exception" for class Range_.
Definition: Range.cpp:40
GaudiException
Definition: GaudiException.h:31
Range.h
StatusCode::FAILURE
constexpr static const auto FAILURE
Definition: StatusCode.h:101