Function Pennylane::Util::Abort(const char *, const char *, int, const char *)¶
Defined in File Error.hpp
Function Documentation¶
-
inline void Pennylane::Util::Abort(const char *message, const char *file_name, int line, const char *function_name)¶
Throws a
LightningExceptionwith 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 occured
line – line of source file
function_name – function in which error occured
api/function_Error_8hpp_1aa194f71d51935ae3d194828bddf96254
Download Python script
Download Notebook
View on GitHub