public class ExceptionToResourceMapping
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.util.Map<java.lang.Class<? extends java.lang.Throwable>,java.lang.Integer> |
throwableToMsgIdMap |
Constructor and Description |
---|
ExceptionToResourceMapping() |
Modifier and Type | Method and Description |
---|---|
ExceptionToResourceMapping |
addMapping(java.lang.Class<? extends java.lang.Throwable> clazz,
int msgId) |
java.lang.Integer |
mapThrowable(java.lang.Throwable throwable)
Looks at the exception and its causes trying to find an ID.
|
protected java.lang.Integer |
mapThrowableFlat(java.lang.Throwable throwable)
Mapping without checking the cause (done in mapThrowable).
|
public final java.util.Map<java.lang.Class<? extends java.lang.Throwable>,java.lang.Integer> throwableToMsgIdMap
public java.lang.Integer mapThrowable(java.lang.Throwable throwable)
protected java.lang.Integer mapThrowableFlat(java.lang.Throwable throwable)
public ExceptionToResourceMapping addMapping(java.lang.Class<? extends java.lang.Throwable> clazz, int msgId)
Available under the Apache License, Version 2.0 - Copyright © 2012-2014 greenrobot.de. All Rights Reserved.