Error hook
The error hook lets you intercept the error returned by your handler, the validation hook, the render hook, and any error during each internal process of KCD.
His role is to return a well-formatted error to the client, based on the error provided.
An error hook must have this signature:
Check out the default ErrorHook implementation here.
Check out the signature of the ErrorHook.
Last updated