Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dCache
cta
Commits
193f18e5
Commit
193f18e5
authored
Jul 15, 2014
by
David COME
Browse files
Added a bunch of missing comments in MemBlock.hpp
parent
1ee1281f
Changes
1
Hide whitespace changes
Inline
Side-by-side
castor/tape/tapeserver/daemon/MemBlock.hpp
View file @
193f18e5
...
...
@@ -59,6 +59,9 @@ class MemBlock {
*/
std
::
string
m_errorMsg
;
/**
* in case of error, the error message
*/
int
m_errorCode
;
AlterationContext
(
const
std
::
string
&
msg
,
int
errorCode
,
Failed_t
)
:
...
...
@@ -80,6 +83,11 @@ public:
reset
();
}
/**
* Get the error message from the context,
* Throw an exception if there is no context
* @return
*/
std
::
string
errorMsg
()
const
{
if
(
m_context
.
get
())
{
return
m_context
->
m_errorMsg
;
...
...
@@ -88,6 +96,12 @@ public:
throw
castor
::
exception
::
Exception
(
"Error Context is not set ="
" no error message to give"
);
}
/**
* Get the error code from the context,
* Throw an exception if there is no context
* @return
*/
int
errorCode
()
const
{
if
(
m_context
.
get
())
{
return
m_context
->
m_errorCode
;
...
...
@@ -96,10 +110,19 @@ public:
throw
castor
::
exception
::
Exception
(
"Error Context is not set ="
" no error code to give"
);
}
/**
* Return true if the block has been marked as failed
* @return
*/
bool
isFailed
()
const
{
return
m_context
.
get
()
&&
m_context
->
m_failed
;
}
/**
* Return true if the block has been marked as canceled
* @return
*/
bool
isCanceled
()
const
{
return
m_context
.
get
()
&&
m_context
->
m_cancelled
;
}
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment