FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python-bitshares/bitsharesapi/exceptions.py at develop · BTS-CM/python-bitshares · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
BTS-CM
/
python-bitshares
Public
forked from
bitshares/python-bitshares
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
python-bitshares
/
bitsharesapi
/
exceptions.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
36 lines (26 loc) · 682 Bytes
Breadcrumbs
python-bitshares
/
bitsharesapi
/
exceptions.py
Copy path
File metadata and controls
36 lines (26 loc) · 682 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import
re
from
grapheneapi
.
graphenewsrpc
import
RPCError
def
decodeRPCErrorMsg
(
e
):
""" Helper function to decode the raised Exception and give it a
python Exception class
"""
found
=
re
.
search
(
(
"(10 assert_exception: Assert Exception
\n
|"
"3030000 tx_missing_posting_auth)"
".*: (.*)
\n
"
),
str
(
e
),
flags
=
re
.
M
)
if
found
:
return
found
.
group
(
2
).
strip
()
else
:
return
str
(
e
)
class
MissingRequiredActiveAuthority
(
RPCError
):
pass
class
NoMethodWithName
(
RPCError
):
pass
class
UnhandledRPCError
(
RPCError
):
pass
class
NumRetriesReached
(
Exception
):
pass
Back
|
FazBrowse Home
|
New Git URL