Skip to content

Commit 9c1f00c

Browse files
mfasDadavidrohr
authored andcommitted
Throw InvalidChannelException in case the enum value is not supported
1 parent 644ba5e commit 9c1f00c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

DataFormats/Detectors/EMCAL/src/Constants.cxx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ int o2::emcal::channelTypeToInt(o2::emcal::ChannelType_t chantype)
4848
case o2::emcal::ChannelType_t::LEDMON:
4949
return 3;
5050
};
51+
throw o2::emcal::InvalidChanneltypeException(int(chantype));
5152
}
5253

5354
o2::emcal::ChannelType_t o2::emcal::intToChannelType(int chantype)

0 commit comments

Comments
 (0)