Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cta
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
dCache
cta
Commits
43075712
Commit
43075712
authored
8 years ago
by
Steven Murray
Browse files
Options
Downloads
Patches
Plain Diff
Added context and embedBacktrace params to CommandLineNotParsed constructor
parent
fd97ad4a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
common/exception/CommandLineNotParsed.cpp
+10
-5
10 additions, 5 deletions
common/exception/CommandLineNotParsed.cpp
common/exception/CommandLineNotParsed.hpp
+17
-12
17 additions, 12 deletions
common/exception/CommandLineNotParsed.hpp
with
27 additions
and
17 deletions
common/exception/CommandLineNotParsed.cpp
+
10
−
5
View file @
43075712
...
...
@@ -18,10 +18,15 @@
#include
"common/exception/CommandLineNotParsed.hpp"
namespace
cta
{
namespace
exception
{
//
-----------------------------------------------------------------------------
//
C
onstructor
//
-----------------------------------------------------------------------------
cta
::
exception
::
CommandLineNotParsed
::
CommandLineNotParsed
()
:
cta
::
e
xception
::
Exception
(
)
{
//
-
-----------------------------------------------------------------------------
//
c
onstructor
//
-
-----------------------------------------------------------------------------
CommandLineNotParsed
::
CommandLineNotParsed
(
const
std
::
string
&
context
,
const
bool
embedBacktrace
)
:
E
xception
(
context
,
embedBacktrace
)
{
}
}
// namespace exception
}
// namespace cta
This diff is collapsed.
Click to expand it.
common/exception/CommandLineNotParsed.hpp
+
17
−
12
View file @
43075712
...
...
@@ -22,19 +22,24 @@
namespace
cta
{
namespace
exception
{
/**
* CommandLineNotParsed.
*/
class
CommandLineNotParsed
:
public
cta
::
exception
::
Exception
{
public:
/**
* Constructor
*/
CommandLineNotParsed
();
/**
* CommandLineNotParsed.
*/
class
CommandLineNotParsed
:
public
cta
::
exception
::
Exception
{
public:
/**
* Constructor.
*
* @param context optional context string added to the message
* at initialisation time.
* @param embedBacktrace whether to embed a backtrace of where the
* exception was throw in the message
*/
CommandLineNotParsed
(
const
std
::
string
&
context
=
""
,
const
bool
embedBacktrace
=
true
);
};
// class CommandLineNotParsed
};
// class CommandLineNotParsed
}
}
// namespace cta exception
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment