下面列出了怎么用org.springframework.util.ExceptionTypeFilter的API类实例代码及写法,或者点击链接到github查看源代码。
protected void cacheException(@Nullable Cache exceptionCache, ExceptionTypeFilter filter, Object cacheKey, Throwable ex) {
if (exceptionCache == null) {
return;
}
if (filter.match(ex.getClass())) {
doPut(exceptionCache, cacheKey, ex);
}
}
protected void cacheException(@Nullable Cache exceptionCache, ExceptionTypeFilter filter, Object cacheKey, Throwable ex) {
if (exceptionCache == null) {
return;
}
if (filter.match(ex.getClass())) {
doPut(exceptionCache, cacheKey, ex);
}
}
protected void cacheException(Cache exceptionCache, ExceptionTypeFilter filter, Object cacheKey, Throwable ex) {
if (exceptionCache == null) {
return;
}
if (filter.match(ex.getClass())) {
doPut(exceptionCache, cacheKey, ex);
}
}
protected void cacheException(Cache exceptionCache, ExceptionTypeFilter filter, Object cacheKey, Throwable ex) {
if (exceptionCache == null) {
return;
}
if (filter.match(ex.getClass())) {
exceptionCache.put(cacheKey, ex);
}
}
@Override
public ExceptionTypeFilter getExceptionTypeFilter() {
return this.exceptionTypeFilter;
}
@Override
public ExceptionTypeFilter getExceptionTypeFilter() {
return this.exceptionTypeFilter;
}
@Override
public ExceptionTypeFilter getExceptionTypeFilter() {
return this.exceptionTypeFilter;
}
/**
* Convenience method for subclasses to create a specific {@code ExceptionTypeFilter}.
* @see #getExceptionTypeFilter()
*/
protected ExceptionTypeFilter createExceptionTypeFilter(
Class<? extends Throwable>[] includes, Class<? extends Throwable>[] excludes) {
return new ExceptionTypeFilter(Arrays.asList(includes), Arrays.asList(excludes), true);
}
@Override
public ExceptionTypeFilter getExceptionTypeFilter() {
return this.exceptionTypeFilter;
}
@Override
public ExceptionTypeFilter getExceptionTypeFilter() {
return this.exceptionTypeFilter;
}
@Override
public ExceptionTypeFilter getExceptionTypeFilter() {
return this.exceptionTypeFilter;
}
@Override
public ExceptionTypeFilter getExceptionTypeFilter() {
return this.exceptionTypeFilter;
}
protected ExceptionTypeFilter createExceptionTypeFilter(
Class<? extends Throwable>[] includes, Class<? extends Throwable>[] excludes) {
return new ExceptionTypeFilter(Arrays.asList(includes), Arrays.asList(excludes), true);
}
@Override
public ExceptionTypeFilter getExceptionTypeFilter() {
return this.exceptionTypeFilter;
}
@Override
public ExceptionTypeFilter getExceptionTypeFilter() {
return this.exceptionTypeFilter;
}
@Override
public ExceptionTypeFilter getExceptionTypeFilter() {
return this.exceptionTypeFilter;
}
@Override
public ExceptionTypeFilter getExceptionTypeFilter() {
return this.exceptionTypeFilter;
}
protected ExceptionTypeFilter createExceptionTypeFilter(
Class<? extends Throwable>[] includes, Class<? extends Throwable>[] excludes) {
return new ExceptionTypeFilter(asList(includes), asList(excludes), true);
}
@Override
public ExceptionTypeFilter getExceptionTypeFilter() {
return this.exceptionTypeFilter;
}
@Override
public ExceptionTypeFilter getExceptionTypeFilter() {
return this.exceptionTypeFilter;
}
@Override
public ExceptionTypeFilter getExceptionTypeFilter() {
return this.exceptionTypeFilter;
}
@Override
public ExceptionTypeFilter getExceptionTypeFilter() {
return this.exceptionTypeFilter;
}
protected ExceptionTypeFilter createExceptionTypeFilter(
Class<? extends Throwable>[] includes, Class<? extends Throwable>[] excludes) {
return new ExceptionTypeFilter(asList(includes), asList(excludes), true);
}
@Override
public ExceptionTypeFilter getExceptionTypeFilter() {
return this.exceptionTypeFilter;
}
/**
* Return the {@link ExceptionTypeFilter} to use to filter exceptions thrown while
* invoking the method.
* @see #createExceptionTypeFilter
*/
public abstract ExceptionTypeFilter getExceptionTypeFilter();
/**
* Return the {@link ExceptionTypeFilter} to use to filter exceptions thrown while
* invoking the method.
*/
public abstract ExceptionTypeFilter getExceptionTypeFilter();
/**
* Return the {@link ExceptionTypeFilter} to use to filter exceptions thrown while
* invoking the method.
*/
public abstract ExceptionTypeFilter getExceptionTypeFilter();
/**
* Return the {@link ExceptionTypeFilter} to use to filter exceptions thrown while
* invoking the method.
*/
public abstract ExceptionTypeFilter getExceptionTypeFilter();