[
https://issues.apache.org/jira/browse/CASSANDRASC-36?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17533154#comment-17533154
]
ASF subversion and git services commented on CASSANDRASC-36:
------------------------------------------------------------
Commit 2e233ec579e4d2a23021116027d75e776e7ad9ec in cassandra-sidecar's branch
refs/heads/trunk from Francisco Guerrero
[ https://gitbox.apache.org/repos/asf?p=cassandra-sidecar.git;h=2e233ec ]
CASSANDRASC-36: Support for ErrorHandler in Sidecar
This commit adds a default `ErrorHandler` to the `Route#failureHandler()`. The
default implementation
for Sidecar is `ErrorHandlerImpl`.
Additionally, we allow for custom implementations of the `ErrorHandler` to be
injected (via module
overrides). This allows downstream projects to provide custom implementations
of the `ErrorHandler` to
fit the specific needs of the project.
Patch by Francisco Guerrero; Reviewed by Dinesh Joshi, Saranya Krishnakumar and
Yifan Cai for CASSANDRASC-36
> Support for ErrorHandler route in Sidecar
> -----------------------------------------
>
> Key: CASSANDRASC-36
> URL: https://issues.apache.org/jira/browse/CASSANDRASC-36
> Project: Sidecar for Apache Cassandra
> Issue Type: Improvement
> Components: Configuration
> Reporter: Francisco Guerrero
> Assignee: Francisco Guerrero
> Priority: Normal
> Labels: pull-request-available
> Fix For: 1.0
>
>
> Add a default {{Route#failureHandler()}} that returns a {{JSON}}
> representation of the error for {{io.vertx.ext.web.handler.HttpException}}
> as well as {{REQUEST_TIMEOUT}} errors.
> Additionally, we need to allow for custom implementations of the
> {{ErrorHandler}} interface to be injected. Downstream projects can provide
> custom implementations of the {{ErrorHandler}} to fit the needs of the
> project.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]