Hammer
1.0.0
Helicity Amplitude Module for Matrix Element Reweighting
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
Errors.cc
Go to the documentation of this file.
1
///
2
/// @file Errors.cc
3
/// @brief Hammer errors reporting helper functions
4
///
5
6
//**** This file is a part of the HAMMER library
7
//**** Copyright (C) 2016 - 2020 The HAMMER Collaboration
8
//**** HAMMER is licensed under version 3 of the GPL; see COPYING for details
9
//**** Please note the MCnet academic guidelines; see GUIDELINES for details
10
11
// -*- C++ -*-
12
#include <iostream>
13
14
#include "
Hammer/Exceptions.hh
"
15
16
using namespace
std;
17
18
namespace
Assert {
19
20
void
HandleAssert
(
const
char
*message,
const
char
*condition,
const
char
*fileName,
long
lineNumber) {
21
cerr <<
"Assert Failed: \""
<< message <<
"\""
<< endl;
22
cerr <<
"Condition: "
<< condition << endl;
23
cerr <<
"File: "
<< fileName << endl;
24
cerr <<
"Line: "
<< lineNumber << endl;
25
cerr <<
"Application now terminating"
;
26
}
27
28
}
// namespace Assert
Exceptions.hh
Hammer exception definitions.
Assert::HandleAssert
void HandleAssert(const char *message, const char *condition, const char *fileName, long lineNumber)
Definition:
Errors.cc:20
media
psf
Home
Development
Hammer
src
Tools
Errors.cc
Generated by
1.8.5