You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can you provide a callback function for the error in request path 404? If there is a business interruption, please handle the path error information uniformly
#371
Open
liqingxi1116 opened this issue
Nov 30, 2023
· 5 comments
for example , I don't want this {"code":"PIT-404","msg":"pitaya/handler: gateway.gateway.gadga not found"} data. I hope to customize the data structure
provide your own ErrWrapper in builder.ErrWrapper, Marshal method encodes any error(including your error types) into bytes for net transfer;Unmarshal method converts any error typed bytes into origin errors.Error, to insure that errors.Error still works inside pitaya framework. Hope it helps.
pitaya/handler, url not found error
The text was updated successfully, but these errors were encountered: