-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use RetriableException to handle retriable connection errors (#148)
* use RetriableException for retriable connection errors * align the sink's retry with the source for now
- Loading branch information
Showing
9 changed files
with
27 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
package com.sap.kafka.client.hana | ||
|
||
import com.sap.kafka.utils.ConnectorException | ||
import org.apache.kafka.connect.errors.{ConnectException, RetriableException} | ||
|
||
class HANAConnectorException(msg: String) extends ConnectorException(msg) | ||
class HANAConnectorException(msg: String) extends ConnectException(msg) | ||
|
||
class HANAConnectorRetriableException(msg: String) extends RetriableException(msg) | ||
|
||
class HANAConfigInvalidInputException(msg: String) extends HANAConnectorException(msg) | ||
|
||
class HANAConfigMissingException(msg: String) extends HANAConnectorException(msg) | ||
|
||
class HANAJdbcException(msg: String) extends HANAConnectorException(msg) | ||
class HANAJdbcException(msg: String) extends HANAConnectorRetriableException(msg) | ||
|
||
class HANAJdbcConnectionException(msg: String) extends HANAConnectorException(msg) | ||
class HANAJdbcConnectionException(msg: String) extends HANAConnectorRetriableException(msg) | ||
|
||
class HANAJdbcBadStateException(msg: String) extends HANAJdbcException(msg) | ||
class HANAJdbcBadStateException(msg: String) extends HANAConnectorRetriableException(msg) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
package com.sap.kafka.utils | ||
|
||
class ConnectorException(msg: String) extends Exception(msg) | ||
|
||
class SchemaNotMatchedException(msg: String) extends ConnectorException(msg) | ||
class SchemaNotMatchedException(msg: String) extends org.apache.kafka.connect.errors.ConnectException(msg) |