Class ShardedDataAccessException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.core.NestedRuntimeException
org.springframework.dao.DataAccessException
org.zalando.sprocwrapper.sharding.ShardedDataAccessException
All Implemented Interfaces:
Serializable

public class ShardedDataAccessException extends org.springframework.dao.DataAccessException
Signals that at an exception has occurred while executing the sproc on the shards.
Author:
pribeiro
See Also:
  • Constructor Details

    • ShardedDataAccessException

      public ShardedDataAccessException(String msg, Map<Integer,Throwable> causes)
      Creates a ShardedDataAccessException with specified detail message and causes.
      Parameters:
      msg - the detail message
      causes - the causes
  • Method Details

    • getCauses

      public Map<Integer,Throwable> getCauses()
      Returns an immutable map with the shard id and respective cause.
      Returns:
      an immutable map with the shard id and respective cause