public class DefaultExceptionLevelResolver extends Object implements ExceptionLevelResolver
Constructor and Description |
---|
DefaultExceptionLevelResolver()
Default constructor
|
DefaultExceptionLevelResolver(ExceptionCodeResolver exceptionCodeResolver)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected String |
resolveExceptionCode(Exception ex)
Determines exception code.
|
ExceptionLevel |
resolveExceptionLevel(Exception ex)
Determines the level of exception.
|
void |
setExceptionCodeResolver(ExceptionCodeResolver exceptionCodeResolver)
Sets exception code resolution object.
|
public DefaultExceptionLevelResolver()
public DefaultExceptionLevelResolver(ExceptionCodeResolver exceptionCodeResolver)
exceptionCodeResolver
- Exception code resolution objectpublic void setExceptionCodeResolver(ExceptionCodeResolver exceptionCodeResolver)
exceptionCodeResolver
- Exception code resolution objectpublic ExceptionLevel resolveExceptionLevel(Exception ex)
Determines the level of exception based on first letter of exception code.
If the first letter (irrespective of letter case) of exception code is:
resolveExceptionLevel
in interface ExceptionLevelResolver
ex
- Exception classExceptionLevelResolver.resolveExceptionLevel(java.lang.Exception)
Copyright © 2013–2021 terasoluna.org. All rights reserved.