Mantid
Loading...
Searching...
No Matches
Framework
API
src
ScriptRepository.cpp
Go to the documentation of this file.
1
// Mantid Repository : https://github.com/mantidproject/mantid
2
//
3
// Copyright © 2018 ISIS Rutherford Appleton Laboratory UKRI,
4
// NScD Oak Ridge National Laboratory, European Spallation Source,
5
// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
6
// SPDX - License - Identifier: GPL - 3.0 +
7
#include "
MantidAPI/ScriptRepository.h
"
8
9
namespace
Mantid::API
{
10
11
ScriptRepoException::ScriptRepoException
(
const
std::string &info,
const
std::string &system,
const
std::string &file,
12
int
line)
13
: m_systemError(system), m_userInfo(info) {
14
15
if
(file.empty()) {
16
m_filepath
=
"Not provided"
;
17
}
else
{
18
m_filepath
= file;
19
if
(line > 0) {
20
m_filepath
.append(
": "
).append(
std::to_string
(line));
21
}
22
}
23
}
24
25
const
char
*
ScriptRepoException::what
() const noexcept {
return
m_userInfo
.c_str(); }
26
27
}
// namespace Mantid::API
ScriptRepository.h
Mantid::API::ScriptRepoException::what
const char * what() const noexcept override
Returns the message string.
Definition:
ScriptRepository.cpp:25
Mantid::API::ScriptRepoException::m_filepath
std::string m_filepath
Definition:
ScriptRepository.h:120
Mantid::API::ScriptRepoException::m_userInfo
std::string m_userInfo
Definition:
ScriptRepository.h:119
Mantid::API::ScriptRepoException::ScriptRepoException
ScriptRepoException(const std::string &info=std::string("Unknown Exception"))
default constructor
Definition:
ScriptRepository.h:101
Mantid::API
Definition:
AbsorptionCorrection.h:20
std::to_string
std::string to_string(const wide_integer< Bits, Signed > &n)
Generated on Tue Jan 3 2023 11:57:23 for Mantid by
1.9.5