Project
Loading...
Searching...
No Matches
TRUDecodingErrors.h
Go to the documentation of this file.
1// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3// All rights not expressly granted are reserved.
4//
5// This software is distributed under the terms of the GNU General Public
6// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7//
8// In applying this license CERN does not waive the privileges and immunities
9// granted to it by virtue of its status as an Intergovernmental Organization
10// or submit itself to any jurisdiction.
11
12#ifndef ALICEO2_EMCAL_TRUDECODINGERRORS_H
13#define ALICEO2_EMCAL_TRUDECODINGERRORS_H
14
15#include <exception>
16#include <string>
17
18namespace o2
19{
20
21namespace emcal
22{
23
27class FastOrStartTimeInvalidException : public std::exception
28{
29 public:
32 FastOrStartTimeInvalidException(int time) : std::exception(), mErrorMessage(), mStartTime(time)
33 {
34 mErrorMessage = "FastOr starttime invalid: " + std::to_string(time);
35 }
36
38 ~FastOrStartTimeInvalidException() noexcept final = default;
39
42 const char* what() const noexcept final
43 {
44 return mErrorMessage.data();
45 }
46
49 int getStartTime() const noexcept { return mStartTime; }
50
51 private:
52 std::string mErrorMessage;
53 int mStartTime;
54};
55
56} // namespace emcal
57
58} // namespace o2
59
60#endif // ALICEO2_EMCAL_TRUDECODINGERRORS_H
int16_t time
Definition RawEventData.h:4
Handling of error if starttime is to large (>=14). This is most likely caused by a corrupted channel ...
~FastOrStartTimeInvalidException() noexcept final=default
Destructor.
int getStartTime() const noexcept
Get the size of the L0 patch.
const char * what() const noexcept final
Access to error message.
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
Defining DataPointCompositeObject explicitly as copiable.
std::string to_string(gsl::span< T, Size > span)
Definition common.h:52