Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pybind11_abseil
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
pybind11_abseil
Commits
d77d4f90
Commit
d77d4f90
authored
Feb 09, 2022
by
pybind11_abseil authors
Committed by
Copybara-Service
Feb 09, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Internal change.
PiperOrigin-RevId: 427414320
parent
35f5df96
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
pybind11_abseil/status_not_ok_exception.h
+4
-2
No files found.
pybind11_abseil/status_not_ok_exception.h
View file @
d77d4f90
...
...
@@ -17,9 +17,11 @@ namespace google {
class
StatusNotOk
:
public
std
::
exception
{
public
:
StatusNotOk
(
absl
::
Status
&&
status
)
:
status_
(
std
::
move
(
status
)),
what_
(
status_
.
ToString
())
{}
:
status_
(
std
::
move
(
status
)),
what_
(
status_
.
ToString
(
absl
::
StatusToStringMode
::
kWithEverything
))
{}
StatusNotOk
(
const
absl
::
Status
&
status
)
:
status_
(
status
),
what_
(
status_
.
ToString
())
{}
:
status_
(
status
),
what_
(
status_
.
ToString
(
absl
::
StatusToStringMode
::
kWithEverything
))
{}
const
absl
::
Status
&
status
()
const
&
{
return
status_
;
}
absl
::
Status
&&
status
()
&&
{
return
std
::
move
(
status_
);
}
const
char
*
what
()
const
noexcept
override
{
return
what_
.
c_str
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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