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 Summary
ConstructorsConstructorDescriptionShardedDataAccessException(String msg, Map<Integer, Throwable> causes) Creates aShardedDataAccessExceptionwith specified detail message and causes. -
Method Summary
Methods inherited from class org.springframework.core.NestedRuntimeException
contains, getMostSpecificCause, getRootCauseMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ShardedDataAccessException
Creates aShardedDataAccessExceptionwith specified detail message and causes.- Parameters:
msg- the detail messagecauses- the causes
-
-
Method Details
-
getCauses
Returns an immutable map with the shard id and respective cause.- Returns:
- an immutable map with the shard id and respective cause
-