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
560c187b
Commit
560c187b
authored
7 years ago
by
Michael Davis
Browse files
Options
Downloads
Patches
Plain Diff
[xrd_ssi] Handle USER_ERROR response in EosCta_Stub
parent
76dc6f22
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
cmdline/EosCtaStub.cpp
+1
-0
1 addition, 0 deletions
cmdline/EosCtaStub.cpp
xroot_plugins/messages/cta_frontend.proto
+2
-2
2 additions, 2 deletions
xroot_plugins/messages/cta_frontend.proto
with
3 additions
and
2 deletions
cmdline/EosCtaStub.cpp
+
1
−
0
View file @
560c187b
...
...
@@ -319,6 +319,7 @@ int exceptionThrowingMain(int argc, const char *const *const argv)
break
;
case
Response
::
RSP_ERR_PROTOBUF
:
throw
XrdSsiPb
::
PbException
(
response
.
message_txt
());
case
Response
::
RSP_ERR_CTA
:
throw
std
::
runtime_error
(
response
.
message_txt
());
case
Response
::
RSP_ERR_USER
:
throw
std
::
runtime_error
(
response
.
message_txt
());
// ... define other response types in the protocol buffer (e.g. user error)
default
:
throw
XrdSsiPb
::
PbException
(
"Invalid response type."
);
}
...
...
This diff is collapsed.
Click to expand it.
xroot_plugins/messages/cta_frontend.proto
+
2
−
2
View file @
560c187b
...
...
@@ -42,8 +42,8 @@ message Response {
RSP_INVALID
=
0
;
//< Response type was not set
RSP_SUCCESS
=
1
;
//< Request is valid and was accepted for processing
RSP_ERR_PROTOBUF
=
2
;
//< Framework error caused by Google Protocol Buffers layer
RSP_ERR_
USER
=
3
;
//<
User request is invali
d
RSP_ERR_
CTA
=
4
;
//<
Server error reported by CTA Fronten
d
RSP_ERR_
CTA
=
3
;
//<
Server error reported by CTA Fronten
d
RSP_ERR_
USER
=
4
;
//<
User request is invali
d
}
ResponseType
type
=
1
;
//< Encode the type of this response
string
message_txt
=
2
;
//< Optional response message text
...
...
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