Hi There! I’m working on Dynamic Resource Provider...
# general
c
Hi There! I’m working on Dynamic Resource Provider and looking for return github api response error inside module
Copy code
def create(self, args):
in other words, How I return error while creating resource error?
e
just raise an exception, it'll get translated to a resource error.
c
you mean Python try-catch function or something else?
e
as in
raise Error("thing went wrong")
c
I didn’t see
Error
in list below
e
Error was a stand-in. Just throw whatever error type makes sense for your error condition.
c
Thank you very much @echoing-dinner-19531