allpix::PulseBadAllocException
Module: Exception classes
Indicates that a pulse object could not be allocated.
#include <exceptions.h>
Inherits from allpix::RuntimeError, allpix::Exception, std::exception
Public Functions
Name | |
---|---|
PulseBadAllocException(const size_t bins, const double time, const std::string & reason) Constructs an error for a pulse which could not be extended to the requested size. |
Additional inherited members
Public Functions inherited from allpix::RuntimeError
Name | |
---|---|
RuntimeError(std::string what_arg) Creates exception with the given runtime problem. |
Protected Functions inherited from allpix::RuntimeError
Name | |
---|---|
RuntimeError() =default Internal constructor for exceptions setting the error message indirectly. |
Public Functions inherited from allpix::Exception
Name | |
---|---|
Exception(std::string what_arg) Creates exception with the specified problem. |
|
const char * | what() const override Return the error message. |
Protected Functions inherited from allpix::Exception
Name | |
---|---|
Exception() =default Internal constructor for exceptions setting the error message indirectly. |
Protected Attributes inherited from allpix::Exception
Name | |
---|---|
std::string | error_message_ |
Public Functions Documentation
function PulseBadAllocException
inline explicit PulseBadAllocException(
const size_t bins,
const double time,
const std::string & reason
)
Constructs an error for a pulse which could not be extended to the requested size.
Parameters:
- bins Number of bins attempted to allocate
- time Total integration time of the pulse
- reason Reason why the allocation failed
Updated on 2024-12-13 at 08:31:37 +0000