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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ShardedDataAccessException(String msg, Map<Integer,Throwable> causes)
Creates aShardedDataAccessException
with specified detail message and causes.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<Integer,Throwable>
getCauses()
Returns an immutable map with the shard id and respective cause.-
Methods inherited from class org.springframework.core.NestedRuntimeException
contains, getMessage, getMostSpecificCause, getRootCause
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-