- public static final ExceptionMapper<ReadFailedException> READ_EX_MAPPER =
- new ExceptionMapper<ReadFailedException>("read", ReadFailedException.class) {
- @Override
- protected ReadFailedException newWithCause(String message, Throwable cause) {
- if (cause instanceof org.opendaylight.mdsal.common.api.ReadFailedException) {
- return new ReadFailedException(cause.getMessage(), cause.getCause());
- }
-
- return new ReadFailedException(message, cause);
- }
- };
-