Function Pennylane::Util::Abort(const std::string&, const char *, int, const char *)¶
Defined in File Error.hpp
Function Documentation¶
-
inline void Pennylane::Util::Abort(const std::string &message, const char *file_name, int line, const char *function_name)¶
Throws a
LightningException
with the given error message.This function should not be called directly - use one of the
PL_ASSERT()
orPL_ABORT()
macros, which provide the source location at compile time.- Parameters
message – string literal describing the error
file_name – source file where error occurred
line – line of source file
function_name – function in which error occurred
api/function_Error_8hpp_1a005e051930eed3f473a59b70ae659f9d
Download Python script
Download Notebook
View on GitHub