Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cbmroot
Manage
Activity
Members
Labels
Plan
Wiki
Redmine
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Computing
cbmroot
Merge requests
!1459
algo: Raise error if only one of output-file and output-type is specified.
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
algo: Raise error if only one of output-file and output-type is specified.
fweig/cbmroot:output-flags
into
master
Overview
1
Commits
1
Pipelines
1
Changes
3
Merged
Felix Weiglhofer
requested to merge
fweig/cbmroot:output-flags
into
master
1 year ago
Overview
1
Commits
1
Pipelines
1
Changes
3
Expand
Refs
#3026
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
33bbde0d
1 commit,
1 year ago
3 files
+
22
−
13
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
algo/base/Exceptions.h
+
8
−
6
Options
@@ -5,18 +5,20 @@
#define CBM_ALGO_BASE_EXCEPTIONS_H
#include
<exception>
#include
<string_view>
#include
<fmt/format.h>
namespace
cbm
::
algo
{
/**
* @brief Base class for exceptions
* @brief Base class for exceptions.
*
* @note Should not be thrown directly. Use one of the derived classes instead.
*/
class
Exception
:
public
std
::
runtime_error
{
public:
struct
Exception
:
std
::
runtime_error
{
template
<
typename
...
Args
>
Exception
(
const
char
*
fmt
,
Args
&&
...
args
)
:
std
::
runtime_error
(
fmt
::
format
(
fmt
,
std
::
forward
<
Args
>
(
args
)...))
Exception
(
std
::
string_view
fmt
,
Args
&&
...
args
)
:
std
::
runtime_error
(
fmt
::
format
(
fmt
,
std
::
forward
<
Args
>
(
args
)...))
{
}
};
@@ -24,7 +26,7 @@ namespace cbm::algo
/**
* @brief Indicates an unrecoverable error. Should tear down the process.
*/
class
FatalError
:
public
Exception
{
struct
FatalError
:
Exception
{
using
Exception
::
Exception
;
};
@@ -32,7 +34,7 @@ namespace cbm::algo
* Indicates an error during timeslice processing. Timeslice will be discarded.
* Processing can continue with new timeslice.
*/
class
ProcessingError
:
public
Exception
{
struct
ProcessingError
:
Exception
{
using
Exception
::
Exception
;
};
Loading