| Package | Description |
|---|---|
| cn.home1.oss.lib.errorhandle.api | |
| cn.home1.oss.lib.errorhandle.internal.resolver | |
| cn.home1.oss.lib.errorhandle.internal.translator |
| Modifier and Type | Field and Description |
|---|---|
static Comparator<ExceptionTranslator.Location> |
ExceptionTranslator.Location.HIERARCHY_FIRST_COMPARATOR
Hierarchy first.
|
static Comparator<ExceptionTranslator.Location> |
ExceptionTranslator.Location.ORDER_FIRST_COMPARATOR
Order first.
|
| Modifier and Type | Method and Description |
|---|---|
default Optional<ExceptionTranslator.Location> |
ConcreteExceptionResolver.find(T throwable) |
Optional<ExceptionTranslator.Location> |
ExceptionTranslator.find(Throwable throwable)
locate info.
|
| Modifier and Type | Method and Description |
|---|---|
default Optional<String> |
ConcreteExceptionResolver.localizedMessage(org.springframework.web.context.request.RequestAttributes request,
ExceptionTranslator.Location location,
T throwable)
Translate exception and generates localizedMessage.
|
Optional<Integer> |
ExceptionTranslator.status(ExceptionTranslator.Location location) |
default Optional<Integer> |
ConcreteExceptionResolver.status(org.springframework.web.context.request.RequestAttributes requestAttributes,
ExceptionTranslator.Location location,
T throwable) |
Optional<String> |
ExceptionTranslator.template(ExceptionTranslator.Location location) |
| Modifier and Type | Method and Description |
|---|---|
Optional<String> |
ApplicationErrorExceptionResolver.localizedMessage(org.springframework.web.context.request.RequestAttributes requestAttributes,
ExceptionTranslator.Location location,
ApplicationException throwable) |
Optional<Integer> |
ApplicationErrorExceptionResolver.status(org.springframework.web.context.request.RequestAttributes requestAttributes,
ExceptionTranslator.Location location,
ApplicationException throwable) |
| Modifier and Type | Method and Description |
|---|---|
Optional<ExceptionTranslator.Location> |
DefaultExceptionTranslator.find(Throwable throwable) |
| Modifier and Type | Method and Description |
|---|---|
Optional<Integer> |
DefaultExceptionTranslator.status(ExceptionTranslator.Location location) |
Optional<String> |
DefaultExceptionTranslator.template(ExceptionTranslator.Location location) |
Copyright © 2017. All rights reserved.