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
0992d116
Commit
0992d116
authored
6 years ago
by
Steven Murray
Browse files
Options
Downloads
Patches
Plain Diff
AcsCmdLine::parseTimeout() now throws InvalidTimeout instead of InvalidAgument
parent
59d93dc3
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
mediachanger/acs/AcsCmdLine.cpp
+1
-1
1 addition, 1 deletion
mediachanger/acs/AcsCmdLine.cpp
mediachanger/acs/AcsCmdLine.hpp
+9
-0
9 additions, 0 deletions
mediachanger/acs/AcsCmdLine.hpp
with
10 additions
and
1 deletion
mediachanger/acs/AcsCmdLine.cpp
+
1
−
1
View file @
0992d116
...
...
@@ -149,7 +149,7 @@ int cta::mediachanger::acs::AcsCmdLine::parseQueryInterval(const std::string &s)
int
cta
::
mediachanger
::
acs
::
AcsCmdLine
::
parseTimeout
(
const
std
::
string
&
s
)
{
const
int
timeout
=
atoi
(
s
.
c_str
());
if
(
0
>=
timeout
)
{
cta
::
exception
::
InvalidArgumen
t
ex
;
InvalidTimeou
t
ex
;
ex
.
getMessage
()
<<
"Timeout value must be an integer greater than 0"
": value="
<<
timeout
;
throw
ex
;
...
...
This diff is collapsed.
Click to expand it.
mediachanger/acs/AcsCmdLine.hpp
+
9
−
0
View file @
0992d116
...
...
@@ -73,10 +73,19 @@ protected:
*/
int
parseQueryInterval
(
const
std
::
string
&
s
);
/**
* Invalid timeout.
*/
struct
InvalidTimeout
:
public
exception
::
Exception
{
InvalidTimeout
(
const
std
::
string
&
context
=
""
,
const
bool
embedBacktrace
=
true
)
:
cta
::
exception
::
Exception
(
context
,
embedBacktrace
)
{}
};
/**
* Parses the specified timeout.
*
* @return The parse query interval.
* @throw InvalidTimout if the timeout is invalid.
*/
int
parseTimeout
(
const
std
::
string
&
s
);
...
...
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